Skip to content

Instantly share code, notes, and snippets.

@SunboX
Created January 26, 2013 11:48
Show Gist options
  • Save SunboX/4641913 to your computer and use it in GitHub Desktop.
Save SunboX/4641913 to your computer and use it in GitHub Desktop.

Getting your Firefox app on Heroku

Assuming you already have your app working locally

Get heroku working

Getting your Firefox app online

Add a Procfile with the following content to the root dir of your app

web: volo serve

Change line-265 in the volofile in your app's root

from

var port = 8008;

to

var port = process.env.PORT || 8008;

Make the following changes in your package.json

  • Add "volo" to the list of dependencies

    "volo": "*"

  • Add the following also to the package.json

    "engines": { "node": "0.8.x", "npm": "1.1.x" }

If you are in doubt check the sample package.json attached in this gist. Oh actually just copy-paste it. :)

Deploy your app to heroku

  • Run heroku create in your app's directory

  • Copy the git url you get (something like... "[email protected]:serene-garden-8425.git")

  • And run the following

    git remote add heroku whatever-git-url-you-got

    example:

    git remote add heroku [email protected]:serene-garden-8425.git

  • [if you have never used Git; trust me and copy paste the following command]

    echo "node_modules" >> .gitignore && git add . && git commit -m "Initial commit" && git push heroku master

Thats it. When you ran heroku create, you got an app url; Visit that and you'll find you app. Lost that? Run heroku info and you'll find the url

{
"name": "mortar",
"version": "0.0.1",
"dependencies": {
"volo": "*",
"volo-ghdeploy": "0.0.3",
"connect": "~2.4.4",
"less-middleware": "~0.1.5"
},
"amd": {},
"volo": {
"dependencies": {
"zepto": "github:madrobby/zepto/v0.8"
},
"baseUrl": "www/js/lib"
},
"engines": {
"node": "0.8.x",
"npm": "1.1.x"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment