Last active
August 29, 2015 13:56
-
-
Save kamiyaowl/9032461 to your computer and use it in GitHub Desktop.
herokuにdeploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$git init | |
$git add . | |
$git commit -am 'Initial Commit' | |
#ここからへろく | |
$heroku create | |
$git push heroku master | |
#うまく行けばデプロイ終了。自分はProcfileでつまずいた | |
$heroku os:scale web=1 | |
#procfileに書いてあったWebを実行するらしい?しっかり調べてない。とりあえずnodeが起動するのでこれにて終了 | |
##ちなみにheroku createで意味不明なアプリ名なのを変えたいときは | |
$heroku rename NewName | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: node server.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment