2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

はじめてのheroku

Last updated at Posted at 2014-09-06

heroku使ってみたけど結構めんどくさいのでメモ

さいしょにやること

ruby,rails,gitを入れる

バージョンはあとで書く

Heroku Toolbeltを入れる

ターミナルでHerokuを扱うやつ
サイトにあるよ

login
$ heroku login
Enter your Heroku credentials.
Email:[Herokuに登録したメールアドレス]
Password:[Herokuのパスワード]
Could not find an existing public key.
Would you like to generate one? [Yn] Y
Generating new SSH public key.
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub

さいしょにやること ここまで

アプリを作る

rails new します

そのディレクトリに入り,

$ heroku create
$ git push heroku master

pushで結構長いのが出るけどmaster -> masterって最後に書いてあれば成功.

↑ここのやりかた違うかもしれない

アプリを確認する

ターミナルで

$ heroku open

でブラウザで開く.

データベースを使うとややこしいので今度書きます.

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?