I will write it so that I will not forget it
#Launch with foreground
docker-compose up #
#Start with background
docker-compose up -d
#At startup with foreground
Ctr + C
#At startup with background
docker-compose stop
docker-compose build
docker-compose run web bundle exec rails g controller <Controller name> <Action name>
docker-compose run web bundle exec rails g model <Model name> <Column name:Type>
docker-compose run web bundle exec rake db:migrate
docker-compose down --rmi all --volumes
I will add it when I learn something new.
Recommended Posts