Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 767 Bytes

Running.md

File metadata and controls

35 lines (27 loc) · 767 Bytes

How to run:

cd src
chmod +x run.sh
./run.sh (Copies nginx configuration to /usr/shared/nginx kills & starts an fcgi spawn

Restoring Database:

cd db
chmod +x refreshDB.sh
./refreshDB.sh (Removes and runs the initDB executable which reloads the tables/records)

Running local website for remote api (Droplet on digitalOcean)

  • Change the (root ..../distLocal) line in movies.conf to: ../distRemote.
  • Run as instructed above.

Setting the server to be started on reboot:

chmod +x cronjob.sh
sudo crontab -e
  • Add @reboot "/.../cronjob.sh" (Destination to the cronjob)"
  • Reboot

Shutting down:

sudo kill -KILL "$(pgrep fcgi)"
sudo nginx -c movies.conf -s quit