Skip to content

Instantly share code, notes, and snippets.

@taise
Last active December 20, 2015 17:39
Show Gist options
  • Select an option

  • Save taise/6170439 to your computer and use it in GitHub Desktop.

Select an option

Save taise/6170439 to your computer and use it in GitHub Desktop.

heroku command

gem install heroku --no-ri --no-rdoc
heroku

もしherokuコマンドが正しくaliasされていないというエラーが出た場合は、 端末を立ち上げなおすと、herokuコマンドを認識してくれる。

heroku login

heroku login

add ssh keys

heroku keys:add ~/.ssh/id_rsa.pub

app create

heroku create appname

deploy

git push heroku master

node.js app

touch Procfile
echo "web: node app.js" > Procfile

maintenance mode

heroku maintenance:on
heroku maintenance:off

add plugin (mongohq)

heroku addons:add mongohq:sandbox

show mongo connection info

heroku config

mongo console for mongohq

mongo -u heroku -p password  url:port/database

mongohq memo

MongoHQ Sandbox

  • memory 50MB
  • Strage 512MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment