Commit 4a3e879b authored by Quentin's avatar Quentin
Browse files

Deploy notes

parent d2cabbeb
# Instructions to deploy CheneTAL to the server
I don't really know what I'm doing, this is description of empiric findings.
## Copy repo to the server
`git clone $REPOPATH`
`sudo scp -P 60022 -rv chenetal/`
Move it the /var/www/
## Client configuration
Build the client:
`npm run build`
In `vue.config.js`, add the following:
`publicPath: process.env.NODE_ENV === 'production'? '/chenetal/' : '/',`
## Set up Apache
Install apache2:
`sudo apt install apache2`
Change stuff in the file _/etc/apache2/sites-available/000-default.conf_:
`DocumentRoot /var/www/html`
`DocumentRoot /var/www/chenetal/client/dist`
Check that apache2 is running (and enabled):
`systemctl status apache2`
Go check _
## Install and run mongo
Follows the installation guidelines from
## Server configuration
I have no idea
## Notes from Jaime meeting
Check pm2
Configuration file of pm2 for invited_professors:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment