$ nvm install --lts
$ bundle install
// Edit credentials
$ EDITOR="code --wait" bin/rails credentials:edit
# aws:
# access_key_id: 123
# secret_access_key: 345
discord:
token: xxxxx
channel_id: xxxxx
# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.
secret_key_base: xxxxx
// Run development server
$ rails s
docker compose build --no-cache
docker compose down
docker compose up -d
Backup
$ chmod +x backup.sh
$ crontab -e
0 2 * * * /path/to/your/project/backup.sh
Restore
$ docker run --rm -v bookmarks-rails_postgres-data:/volume -v $(pwd):/backup busybox tar xvf /backup/postgres-data_backup.tar -C /