Permalink
Browse files

fixed formatting

  • Loading branch information...
1 parent 067ad04 commit d56f2c4a337b8536502c794884a07dc4958f62a4 @vorn committed Apr 7, 2012
Showing with 19 additions and 3 deletions.
  1. +19 −3 README.md
View
@@ -6,16 +6,23 @@ N.B. This process was an initial attempt and is subject to change :)
To create a new project from scratch:
1. Create a top level project directory. Add an empty ebin/ directory.
- - (N.B. also create a dummy file to commit to git)
+(N.B. also create a dummy file to commit to git)
2. Create a new heroku instance:
+
git init
heroku create --stack cedar
heroku config:add BUILDPACK_URL=http://github.com/heroku/heroku-buildpack-erlang.git
+
3. Add ChicagoBoss as git submodule (also repeat for cb_admin if required)
+
git submodule add https://github.com/evanmiller/ChicagoBoss.git ChicagoBoss
-4.
+
+4. Create app
+
cd ChicagoBoss; make; make app PROJECT=myapp
+
5. Add Procfile, run.sh from this project - edit project name in run.sh
+
6. Edit myapp/init.sh - add the following sections: (running erl with the -sname param causes heroku startup to fail)
'start-standalone')
@@ -33,24 +40,33 @@ To create a new project from scratch:
7. Edit myapp/boss.config
- change boss path line to:
+
{path, "../ChicagoBoss"},
+
- change port line to:
+
{port, {env, "PORT"}},
+
- N.B. above currently requires ChicagoBoss HEAD to work
-7. Deploy! (git add .; git push heroku master)
+7. Deploy!
+ git add .; git push heroku master
A few caveats:
- This is based on using the heroku supplied erlang buildpack at: https://github.com/heroku/heroku-buildpack-erlang
- A better solution would be to modify the buildpack to build CB at the compile stage (as opposed to the run stage)
- As such, the above solution may crash at the first deploy due to the app not starting within 60secs. Run:
+
heroku logs -t
+
in a seperate window to keep an eye on the deployment/startup process.
Heroku specific stuff: (if you are not familiar with using Heroku)
+
heroku info
+
...will display info about the current project (app url, git url etc)

0 comments on commit d56f2c4

Please sign in to comment.