3

Railsアプリをherokuにアップロードしたい場合は、このシーケンスを実行して、herokuで新しいプロジェクトを作成します。

git init
git add .
git commit -m "init" 
heroku create
git push heroku master

その後、プロジェクトをデプロイする必要があるたびに、http://-somethingdiferent-.herokuapp.comのような新しいURLを取得します

後で他の新しいherokuプロジェクトを作成せずにそのプロジェクトを使用する方法がわかりませんが、pull of gitのようなものを使用することを考えていましたが、pul on heroku、おそらく-git pull heroku masterはどうですか?しかし、その場合、どうすれば同じプロジェクトをプルできますか?

シーケンスやチュートリアルをご存知でしたらよろしいですか?

ありがとう

4

1 に答える 1

9

最初にアプリを作成してみてください

# run this command from the app folder to create a new app
$ heroku open --app the-app-name

# Add it to the remote
$ heroku git:remote -a the-app-name

# push app to heroku
$ git push heroku master

the-app-nameアプリケーション名に置き換えます。

ここでもっと便利なものを見つけることができます。

于 2013-01-11T01:04:33.927 に答える