Skip to content

Instantly share code, notes, and snippets.

@ebryn

ebryn/Procfile Secret

Last active December 20, 2015 01:29
Show Gist options
  • Save ebryn/1f9989ef472bf751cf66 to your computer and use it in GitHub Desktop.
Save ebryn/1f9989ef472bf751cf66 to your computer and use it in GitHub Desktop.
#!/bin/bash
rm -rf tmp && \
grunt build:dist && \
git clone . tmp/deploys && \
cd tmp/deploys && \
git checkout deploys && \
cp -pr ../public . && \
git add . && \
git commit -m "New deploy" && \
git remote add heroku git@heroku.com:YOURAPP.git && \
git push heroku deploys:master -f && \
echo "All done!"
web: node server.js
var connect = require('connect');
var app = connect()
.use(connect.logger('dev'))
.use(connect.static('public'))
.listen(process.env.PORT || 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment