A standard Sinatra boilerplate, with Compass and Sass.
To get the boilerplate running, grab a copy locally.
Navigate to the directory you downloaded Sinatra Boilerplate, and run the following:
# Install the appropriate Ruby gems (shorthand for bundle install) > bundle # Start the server > foreman start
The app will now be accessible at http://0.0.0.0:5000
This will give you access to the following tools:
Once you have an account for Heroku run the following in your terminal.
# Once you've installed the Heroku toolbelt, log in > heroku login
This will ask for your Heroku credentials.
# Enter your Heroku credentials. > Email: email@example.com > Password: ********
If you already have an SSH key set up on your local machine, you'll likely see the following. Heroku will help you set up a key, which makes deployment much quicker, meaning you don't have to enter your password every time you deploy. Win.
# If you haven't set up keys, Heroku will help you out. For example: # Could not find an existing public key. > Would you like to generate one? [Yn] # Generating new SSH public key. # Uploading ssh public key /Users/you/.ssh/id_rsa.pub
If you get a publickey error (access denied) when you try and push the site to Heroku, add your public key manually.
# Add your public key to Heroku manually > heroku keys:add
Next up, we set up the app and deploy it.
Set up your Heroku stack and deploy the app to it.
> heroku create # Creating temp... done, stack is cedar # http://temp.herokuapp.com/ | firstname.lastname@example.org:temp.git # Git remote heroku added # Deploy the app > git push heroku master # Celebrate! > heroku open
You can rename the app from the randomly generated http://random-subdomain.heroku.com/ to something more meaningful using:
# Rename your subdomain > heroku rename newname
This can be more awesome. I am sure of it. Fork it and get involved.