Is a template that Ruby on Rails projects can be started from with all development and production setup built in.
NOTE: Any console line starting with
/app #is running within the Rails container.
2.6.6
On the first run of sudo docker-compose ..., it will see the images are not in your docker daemon. Docker compose
will either then build your image or get the image. If you make a change to a Dockerfile and want to rebuild the
Rails image, run sudo docker-compose up --build.
git clone https://github.com/Machine-Translation/Rails-template.gitdocker-compose up --builddocker-compose run --service-ports app /bin/sh/app # bundle install
sudo docker-compose run app /bin/sh/app # bundle exec rake db:create
sudo docker-compose run app /bin/sh/app # bundle exec rake db:schema:load
sudo docker-compose run app /bin/sh/app # bundle exec rails db:migrate
docker-compose up- Websites will come later ...
To be continued ...
To be continued...