Skip to content

minhyung-joo/guacamoli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-guacamoli

UI for HKUST25 Guacamoli Project

Deployed on HKUST ITSC server pvs0087.ust.hk (www.guacamoli.ust.hk)

Deployment Process

SSH into server

ssh [email protected]
cd guacamoli

pull from github

git pull

set to production mode

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.

restart service

sudo stop guacamoli
sudo start guacamoli

sudo stop guacamoli-image-service
sudo start guacamoli-image-service

Server Management

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 40.0%
  • HTML 32.0%
  • CSS 28.0%