- Compilation script
- Script for Systemd startup
sudo -u postgres createuser -d -P videouploader
cd /srv/apps/video_uploader
RAILS_ENV=production rake db:create
RAILS_ENV=production rake db:migrate
bundle exec sidekiq -e production -d -L ./log/sidekiq.log
RAILS_ENV=production rake scraper:webuildsg
RAILS_ENV=production rake scraper:fossasia
Or you may create a default scraper by setting ENV['DEFAULT_SCRAPER']
to the specific scraper and set this up as a cronjob.
RAILS_ENV=production rake scraper:run
RAILS_ENV=production rake db:seed
sudo -u postgres createuser -d -P videouploader
PGPASSWORD=mypassword pg_dump -Fc --no-acl --no-owner -h localhost -U videouploader videouploader > videouploader.dump
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U videouploader -d videouploader latest.dump