rails new OCRails \
--database=postgresql \
--skip-action-mailer \
--skip-action-mailbox \
--skip-action-text \
--skip-action-cable \
--skip-spring \
--skip-turbolinks \
--skip-bootsnap \
--skip-webpack-install \
--skip-hotwire \
--skip-bundle
sudo apt-get install libvips libvips-dev libvips-tools
docker -H "ssh://[email protected]" build -t vadviktor.xyz/ocr-rails:1.0.0 -f Dockerfile .
docker \
-H "ssh://[email protected]" \
run \
--detach \
--name ocr-rails \
--network rpi-services \
--restart=always \
-p 0.0.0.0:3000:3000/tcp \
-e RAILS_MASTER_KEY="" \
-e REDIS_URL="redis://redis:6379/1" \
-e DATABASE_URL="postgres://dbuser:dbpassword@postgres:5432/OCRails_production" \
vadviktor.xyz/ocr-rails:1.0.0 \
bin/rails server
docker \
-H "ssh://[email protected]" \
run \
--detach \
--name ocr-sidekiq \
--network rpi-services \
--restart=always \
-e RAILS_MASTER_KEY="" \
-e REDIS_URL="redis://redis:6379/1" \
-e DATABASE_URL="postgres://dbuser:dbpassword@postgres:5432/OCRails_production" \
vadviktor.xyz/ocr-rails:1.0.0 \
bin/sidekiq