Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial Heroku setup
  • Loading branch information
bergie committed Apr 18, 2012
1 parent 0504919 commit 53c4dfd
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: ./node_modules/nodext/bin/nodext configuration/heroku.json
24 changes: 24 additions & 0 deletions README.markdown
Expand Up @@ -30,3 +30,27 @@ Copy the `configuration/localhost_8001.json.dist` to `configuration/localhost_80
To start Palsu, run:

$ ./node_modules/nodext/bin/nodext configuration/localhost_8001.json

Deploying on Heroku
-------------------

Create an app:

$ heroku apps:create -s cedar palsu

Enable Redis:

$ heroku addons:add redistogo:nano

Set your LinkedIn API and secret keys:

$ heroku config:add LINKEDINAPIKEY=foo
$ heroku config:add LINKEDINSECRETKEY=bar

Deploy:

$ git push heroku master

Watch logs:

$ heroku logs
28 changes: 28 additions & 0 deletions configuration/heroku.json
@@ -0,0 +1,28 @@
{
"server": {
"hostname": "palsu.herokuapp.com",
"port": 8001
},
"extensions": {
"/": {
"name": "palsu",
"location": "./extension/palsu",
"configuration": {
"idPrefix": "https://palsu.herokuapp.com/"
}
},
"/login/": {
"location": "./extension/login",
"configuration": {
"linkedin": {
"apiKey": "",
"secretKey": "",
"callbackURL": "https://palsu.herokuapp.com/login/linkedin/callback"
},
"session": {
"secret": "aina palsussa"
}
}
}
}
}

0 comments on commit 53c4dfd

Please sign in to comment.