A copy of the blog created in Rails getting started
This is a reference application.
The blog post can be found here:
https://paramagicdev.github.io/my-blog/rails/getting-started-with-rails-6/
And the deployed application can be found here:
https://getting-started-with-rails-6.herokuapp.com/
- Docker
- Docker Compose
docker -v
# Docker version 19.03.6
docker-compose -v
# docker-compose version 1.25.0
Make sure you set appropriate environment values in the docker-compose.yml
file.
If you are on Mac or Windows, do not worry about USER_ID
& GROUP_ID
variables
docker-compose build
Alternatively:
docker-compose up --build
docker-compose run --rm web rails db:create
docker-compose run --rm web rails db:migrate
docker-compose up
docker-compose up --build
docker-compose run --rm web bundle add <gemname>
docker-compose down
docker-compose up --build
docker-compose run --rm web rails [command]
# Alternatively, open a bash instance and run normally
docker-compose run --rm web /bin/bash
rails [command]
docker-compose run --rm web yarn install --check-files
heroku login
heroku apps:create <app-name>
git push heroku master
heroku run rails db:migrate
Make sure you have the following ENV variables set:
# Authentication name & password to add / delete comments and articles
ADMIN_NAME="<Name>"
ADMIN_PASSWORD="<Password>"