Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial Heroku setup

  • Loading branch information...
commit 53c4dfde8715bca53c17e0d28bdee0e69c0dc38b 1 parent 0504919
@bergie authored
Showing with 53 additions and 0 deletions.
  1. +1 −0  Procfile
  2. +24 −0 README.markdown
  3. +28 −0 configuration/heroku.json
View
1  Procfile
@@ -0,0 +1 @@
+web: ./node_modules/nodext/bin/nodext configuration/heroku.json
View
24 README.markdown
@@ -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
View
28 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"
+ }
+ }
+ }
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.