I'm trying to develop the rails application using docker.
docker-compose run web rails db:migrate
I was able to verify that the database was created by running , but when I accessed localhost:3000, I saw the following:
As an assumption, we expect the rails application default page to appear.
I'd like someone to give me some advice.
Accessed at http://0.0.0:3000 → No change
Accessed at http://127.0.0.1:3000 → No change
docker-composer run webrails already existed
docker-compose exec webbash entered the virtual environment and typed the following command:
The standard HTML file was retrieved, so it seems to be working properly in a virtual environment.
I was building a separate swarm cluster and it was disturbing.
The docker warm leave -- force command pulled out of the swarm cluster and ran docker up-d again, and it worked.
© 2022 OneMinuteCode. All rights reserved.