The new and improved IGO website built using the MEVN stack.
-
Configurations - Update
.env
file inbackend/
(Not available in git repo - take from VMdlviigoweb1
at/srv/www/genomics/.env
) -
Run
cd backend npm install npm run start
-
Configurations - Update
env.development
,env.staging
, andenv.production
files infrontend/
(Not available in git repo - take from VMdlviigoweb1
). -
Run
cd frontend npm install npm run serve # application should start on localhost:8080 and will use `env.development` by default
**QA/Staging**
```
make ENV=staging HOST=dlviigoweb1 deploy # will build using `env.staging`
```
**PROD**
```
make ENV=production HOST=plviigoweb1 deploy # will build using `env.production`
```
Notes:
- This DELETES the existing application on the
HOST
specified. It then copies the packaged application created locally to the new location. - This creates and copies a
dist
directory to thebackend
directory in your home on theHOST
specified. Make sure your~/deployments
exists on thatHOST
! make deploy
is aMakefile
command. If there are issues w/ this step, please review thedeploy
step of the Makefile- Expect to enter your password multiple times - once to
scp
the packaged application, once to remotely send the install command, and to rundzdo
remotely (dzdo
allows for root access on our VM's and is needed so you can re-deploy if another user was the last to deploy)