UI for HKUST25 Guacamoli Project
Deployed on HKUST ITSC server pvs0087.ust.hk (www.guacamoli.ust.hk)
ssh [email protected]
cd guacamoli
git pull
make sure that production mode is set!!
navigate to server.js
in app root directory, and set
RUNNING_ON_ITSC_SERVER = true;
else, node app assumes that it is running on local or heroku testing environment.
sudo stop guacamoli
sudo start guacamoli
sudo stop guacamoli-image-service
sudo start guacamoli-image-service
edit service configuration file:
sudo vim /etc/init/guacamoli.conf
sudo vim /etc/init/guacamoli-image-service.conf
view log history:
tail -100 /var/log/node.log
tail -100 /var/log/image-service.log
access Postgres Database:
psql
\d meal
\q
Backup & Restore Database:
cd /home/guacamoli/database_backup
pg_dump guacamoli > backup_filename
psql guacamoli < backup_filename