Application to manage master theses committees for the Master on Computer Vision
1.3K
Install postgres sudo apt-get install postgres
Create a user and a database sudo su - postgres createuser -P -d mcv_theses psql create database mcv_theses owner mcv_theses; \q exit
Modify the credentials on the file config/config.json
Run the application in production mode NODE_ENV=production node bin/www
Once tested, run the application in cluster sudo npm install pm2 -g pm2 start pm2_conf.json --env production
In order to apply the migrations in the right way, follow those steps:
docker-compose up -d db
docker-compose run web node ./node_modules/sequelize-cli/lib/sequelize db:migrate
docker-compose up -d
docker cp 2019_09_02_mcv_theses_backup.dump XXX:/. docker-compose exec db pg_restore -U mcv_theses -d mcv_theses --data-only -t users 2019_09_02_mcv_theses_backup.dump docker-compose exec db pg_restore -U mcv_theses -d mcv_theses --data-only -t periods 2019_09_02_mcv_theses_backup.dump docker-compose exec db pg_restore -U mcv_theses -d mcv_theses --data-only -t tracks 2019_09_02_mcv_theses_backup.dump docker-compose exec db pg_restore -U mcv_theses -d mcv_theses --data-only -t thesis 2019_09_02_mcv_theses_backup.dump docker-compose exec db pg_restore -U mcv_theses -d mcv_theses --data-only -t slots 2019_09_02_mcv_theses_backup.dump docker-compose exec db pg_restore -U mcv_theses -d mcv_theses --data-only -t configs 2019_09_02_mcv_theses_backup.dump docker-compose exec db pg_restore -U mcv_theses -d mcv_theses --data-only -t advisors 2019_09_02_mcv_theses_backup.dump docker-compose exec db pg_restore -U mcv_theses -d mcv_theses --data-only -t committees 2019_09_02_mcv_theses_backup.dump
Content type
Image
Digest
Size
453.1 MB
Last updated
almost 6 years ago
docker pull xbaro/mcv_theses