cloud9でrails-tutorialを進めています。
「git push heroku master」で以下のようになり、デプロイできません。
ec2-user:~/environment/hello_app (master) $ git push heroku master
error: src refspec master does not match any.
error: failed to push some refs to 'https://git.heroku.com/peaceful-harbor-93501.git'
commit時に以下のように表示されたのですがうまくいっていないのでしょうか?
ec2-user:~/environment/hello_app (master) $ git commit -a -m "Update Gemfile for Heroku"
On branch master
Initial commit
Untracked files:
.gitignore
Gemfile
Gemfile.lock
・
・
・
nothing added to commit but untracked files present
なお、remoteではアプリ(hello_app)は追加できています。
ec2-user:~/environment/hello_app (master) $ git remote add heroku https://git.heroku.com/hello_app.git
fatal: remote heroku already exists.
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/13 01:43
2018/10/13 02:36
2018/10/13 09:25