In order to properly develop a website, HTML and CSS files must be sent to your
browser by a web server. This little template uses a ruby web server, and
serves your plain HTML and CSS files from the public/
directory.
It's stolen from inspired by Heroku's excellent template.
- Fork this repository, and name your fork after your project.
- Clone your fork into your machine. (
git clone <your-ssh-url>
) cd your_project_name
.- Run
bundle install
. You only need to do this once. - To start the local server, run
rackup -p 3000
from the project directory. This will start the server on port 3000 of your machine.
If you are running this on your local machine, you can then visit http://localhost:3000 in your browser to see your code.
If you add an HTML file to the public/
folder, you can see it in your browser
by visiting http://localhost:3000/your_file.html.
If you are using Nitrous.io, you can click "Preview - Port 3000" to view your site.