-
Notifications
You must be signed in to change notification settings - Fork 6
Heroku へのデプロイ
Keita Urashima edited this page Dec 19, 2013
·
3 revisions
Heroku というサービスを使って自作のスタンザを公開する手順を説明します。
Windows 7でHerokuを始める - 結城浩のはてな日記 を参考に、アカウントの作成と heroku
コマンドのインストールを行ってください。
スタンザの作り方で作成したスタンザプロバイダのディレクトリに移動します。
$ cd my_provider
heroku create
コマンドでアプリケーションを作成します (URL はランダムに決められます)。
$ heroku create
Creating shrouded-plains-7930... done, stack is cedar
http://shrouded-plains-7930.herokuapp.com/ | [email protected]:shrouded-plains-7930.git
Git remote heroku added
Heroku へのデプロイは git push
で行います。
$ git push heroku master
Fetching repository, done.
(snip)
-----> Launching... done, v5
http://shrouded-plains-7930.herokuapp.com deployed to Heroku
To [email protected]:shrouded-plains-7930.git
699dcae..18bb21d master -> master
これでデプロイは完了です。heroku open
コマンドで表示を確認してみてください。
Next: 高度な機能