This is the sample project that was used by the sendwithus team during the UVic Webdev club talk on Tuesday November 25, 2014.
Note: this code was only tested on Mac OSX and Ubuntu, but the instructions should be similar on Windows.
There are a few basic requirements needed to deploy this project to Heroku:
- have a Heroku account
- Heroku toolbelt installed
- Node.js installed
- Git installed
- Redis installed
Here are some links if you get stuck:
- Clone This Repository
# Navigate to a directory of your choice
cd /my/directory/of/choice
# Clone the repository from Github
git clone git@github.com:sendwithus/heroku101.git
# Navigate into heroku101 repository
cd heroku101
- Install NPM Dependencies
# Install requirements listed in package.json
npm install
- Run the Server with Foreman
# Foreman is part of the Heroku Toolbelt
foreman start -f Procfile
# Log into heroku toolbelt
heroku login
# Add Git remote to point to heroku
git remote add heroku git@heroku.com:my-app-name.git
# Commit changes to Git
git add -A
git commit -m "I made some changes"
git push heroku master