A projet using Ruby 2.7.0., Rails 5.2.2.4 and PostgreSQL 12.1
Running through Unicorn as application server and Nginx as http server and reverse-proxy
Docker and Docker-Compose
- docker-compose up
-
docker-compose run --user "$(id -u):$(id -g)" search-city rake db:create
-
docker-compose run --user "$(id -u):$(id -g)" search-city rake db:migrate
-
docker-compose run --user "$(id -u):$(id -g)" search-city rake db:seed
- If you are in Windows operating sistems, you must ommit "--user "$(id -u):$(id -g)", or execute the container and running rake command inside it (e.g.: docker exec -it search-city_search-city_1 bash)