Skip to content

Commit

Permalink
Merge pull request #288 from mwang87/domain_config
Browse files Browse the repository at this point in the history
Domain Configuration
  • Loading branch information
mwang87 authored Oct 2, 2023
2 parents f47309c + 2f1158a commit 3875138
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
1 change: 1 addition & 0 deletions .env_template
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HOSTNAME=dashboard.gnps2.org
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*pyc
*pyc
.env
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
## GNPS LCMS Visualization Dashboard

### URL Parameters

1. usi
1. xicmz

### Heroku Deployment

We are also trying to support a heroku deployment. This is why we have a Procfile.

### Example Sources of Data

1. GNPS Analysis Tasks - [mzspec:GNPS:TASK-d93bdbb5cdda40e48975e6e18a45c3ce-f.mwang87/data/Yao_Streptomyces/roseosporus/0518_s_BuOH.mzXML:scan:171](https://gnps-lcms.ucsd.edu/?usi=mzspec%3AGNPS%3ATASK-d93bdbb5cdda40e48975e6e18a45c3ce-f.mwang87%2Fdata%2FYao_Streptomyces%2Froseosporus%2F0518_s_BuOH.mzXML%3Ascan%3A171&xicmz=841.3170166%3B842.3170166&xic_tolerance=0.5&xic_norm=No&show_ms2_markers=1&ms2_identifier=MS2%3A1176)
Expand Down Expand Up @@ -139,3 +130,13 @@ make all
- Callbacks: https://dash.plotly.com/basic-callbacks
- Plotly express: https://plotly.com/python/plotly-express/
- Plotly: https://plotly.com/python/


## Production Deployment

One major thing about production deployemnts is the DNS routing. You want to do the following steps to have everything route properly:

1. Create a DNS entry in your DNS server for the domain you want to use (e.g. dashboard.gnps2.org) and point it to the server you're running this on
1. Copy .env_template to .env and update the domain name to the one you want to use
1. Run a reverse proxy (https://github.com/mwang87/GNPS_ExtensionsReverseProxy)
1. Run in production mode ```make server-compose-production```
6 changes: 2 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ services:
restart: unless-stopped
command: /app/run_server.sh
environment:
#VIRTUAL_HOST: gnps-lcms.ucsd.edu,dashboard.gnps2.org,gnps-lcms.gnps2.org
VIRTUAL_HOST: dashboard.gnps2.org,gnps-lcms.gnps2.org
VIRTUAL_HOST: ${HOSTNAME:-gnps-lcms.gnps2.org}
VIRTUAL_PORT: 5000
#LETSENCRYPT_HOST: gnps-lcms.ucsd.edu,dashboard.gnps2.org,gnps-lcms.gnps2.org
LETSENCRYPT_HOST: dashboard.gnps2.org,gnps-lcms.gnps2.org
LETSENCRYPT_HOST: ${HOSTNAME:-gnps-lcms.gnps2.org}
LETSENCRYPT_EMAIL: [email protected]
deploy:
resources:
Expand Down

0 comments on commit 3875138

Please sign in to comment.