teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

回答を受けて試した点を追記

2020/06/23 02:25

投稿

ikutyan46
ikutyan46

スコア18

title CHANGED
File without changes
body CHANGED
@@ -118,4 +118,58 @@
118
118
  2020-06-22T13:38:50.000563+00:00 heroku[run.3315]: State changed from up to complete
119
119
  2020-06-22T13:44:37.381050+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=test-ttmanager.herokuapp.com request_id=※※※*-※※※* fwd="103.5.140.170" dyno= connect= service= status=503 bytes= protocol=https
120
120
  2020-06-22T13:44:37.729897+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=test-ttmanager.herokuapp.com request_id=01fffd4e-ec3d-478f-84a3-add40e566298 fwd="※*.※*.※*.170" dyno= connect= service= status=※* bytes= protocol=https
121
+ ```
122
+
123
+ #追記 回答を受けて、試したこと
124
+
125
+ > deployしたdirにcdしていないようにみえます。
126
+ Gemfilや app, config, public, db などのあるdirにcdする操作をその前に行ってください
127
+
128
+ とあったので、ルートディレクトリから対象のdirに移動して色々試しましたが、結果うまくいきませんでした。何がいけなかったのか?どうしたらいいのか、ご教示頂けますと幸いです。
129
+
130
+ ①対象dirに移動
131
+ ②念のため``heroku apps``で確認したが、ちゃんと入っている
132
+ ```
133
+ == **@**.com Apps
134
+ App 1
135
+ App 2
136
+ App 3
137
+ ```
138
+
139
+ ③移動したdirに、リモートリポジトリ が存在するか確認
140
+ ```
141
+ ***:***(アプリ名) user$ git remote -v
142
+ heroku https://git.heroku.com/(アプリ名).git (fetch)
143
+ heroku https://git.heroku.com/(アプリ名).git (push)
144
+ ```
145
+
146
+ ④公式ガイドを元に、再度デプロイし、``heroku run db:migrate``するが、失敗。
147
+
148
+ ```
149
+ ****:(アプリ名) user$ heroku login
150
+ heroku: Press any key to open up the browser to login or q to exit:
151
+ Opening browser to https://cli-auth.heroku.com/auth/cli/browser/****-****-****-****-********
152
+ Logging in... done
153
+ Logged in as ****@***.com
154
+ ****:(アプリ名) user$ heroku git:clone -a (アプリ名)
155
+ Cloning into '(アプリ名)'...
156
+ remote: Counting objects: 707, done.
157
+ remote: Compressing objects: 100% (302/302), done.
158
+ remote: Total 707 (delta 364), reused 707 (delta 364)
159
+ Receiving objects: 100% (707/707), 238.07 KiB | 354.00 KiB/s, done.
160
+ Resolving deltas: 100% (364/364), done.
161
+ ****:(アプリ名) user$ cd test-ttmanager
162
+ ****:(アプリ名) user$ git add .
163
+ ****:(アプリ名) user$ git commit -am "make it better"
164
+ On branch master
165
+ Your branch is up to date with 'heroku/master'.
166
+
167
+ nothing to commit, working tree clean
168
+ ****:(アプリ名) user$ git push heroku master
169
+ Everything up-to-date
170
+ ****:(アプリ名) user$ heroku run rails db:migrate
171
+ Running rails db:migrate on ⬢ test-ttmanager... up, run.7994 (Free)
172
+ Usage:
173
+ rails new APP_PATH [options]
174
+ (以下、質問当初と同じエラー)
121
175
  ```