Commit 5bc3076c authored by Pascal Hartig's avatar Pascal Hartig

derby: Added heroku deployment

parent feb84b19
compile: compile:
./node_modules/coffee-script/bin/coffee -bw -o ./lib -c ./src
run:
npm install npm install
./node_modules/coffee-script/bin/coffee -b -o ./lib -c ./src ./node_modules/coffee-script/bin/coffee -b -o ./lib -c ./src
run: compile
node server.js node server.js
deploy-setup: compile
git init
heroku git:remote -a todomvc-derby
sed -i 's/lib//' .gitignore
git add -A
git commit -m "Deployment update"
deploy:
git push heroku master
...@@ -23,3 +23,9 @@ the demo server for you. ...@@ -23,3 +23,9 @@ the demo server for you.
In one window, run `make` which will continue to compile the CoffeScript as In one window, run `make` which will continue to compile the CoffeScript as
you save changes. In a separate window run `node server.js` and open up the you save changes. In a separate window run `node server.js` and open up the
shown URL. shown URL.
### Deploy on Heroku
Run `make deploy-setup` once to setup a git repository in this subdirectory and
setup Heroku. Running `make heroku` will put it on Heroku.
require('derby').run(__dirname + '/lib/server', 3003); var port = process.env.PORT || 3003;
require('derby').run(__dirname + '/lib/server', port);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment