Permalink
Browse files

Updated README with instructions for deploying to Heroku

  • Loading branch information...
1 parent d4dc393 commit dba7e6bd560f5fcb392942d2d5b4dacd788135c5 @jonmagic committed Oct 20, 2011
Showing with 26 additions and 0 deletions.
  1. +26 −0 README.md
View
@@ -20,6 +20,32 @@ PDF Archive is a simple PDF storage and retrieval system. Uploading a PDF will s
You can now open the app in your browser http://localhost:3000
+## Running on Heroku
+
+Running this on Heroku requires the following steps:
+
+### Step 1: Create the app on the Heroku Cedar stack
+
+ heroku apps:create app_name --stack cedar
+
+### Step 2: Add MongoHQ Addon
+
+The MongoHQ Addon will give us a small free MongoDB instance for storing our documents.
+
+ heroku addons:add mongohq:free
+
+### Step 3: Configure For S3
+
+First setup an Amazon AWS account, get your key, secret, and create a bucket. Then take those values and configure the environment variables on Heroku.
+
+ heroku config:add AWS_ACCESS_KEY_ID=<aws_access_key_id> AWS_SECRET_ACCESS_KEY=<aws_secret_access_key> BUCKET_NAME=<bucket_name>
+
+### Step 4: Deploy to Heroku
+
+ git push heroku master
+
+When it is finished deploying it will give you the url to your app. Visit in the browser and enjoy!
+
## License
Copyright (c) 2011 Jonathan Hoyt

0 comments on commit dba7e6b

Please sign in to comment.