・ Rails 6.0.3.2 ・ Mysql Ver 14.14 Distrib 5.6.47 ・ Osx10.15
When I created a WEB application with Rails
and deployed it to heroku
for the first time, I could not do it well or the screen was not displayed, so there are careless mistakes, but I will post the countermeasures at that time.
The underscore" _ "
cannot be used in the app name or file name. In my case, I couldn't push to Github either.
The hyphen"-"
is available, so in my case I proceeded by changing the hyphen!
Did not migrate after deployment. It was my first time, so I didn't notice this simple task. .. ..
git push heroku master
Don't forget to create a DB after that!
heroku run rake db:migrate
The DB of heroku
was" PostgreSQL "and it was different from my environment (MySQL).
Details are described in another article ↓
・ Https://qiita.com/yamato1491038/items/4884b8d77c2852425cd1
The screen is displayed when you access while pounding! It was sunny and the deployment was completed!
Recommended Posts