ComPlat/chem-spectra-app

Moving part of installation instructions to this repository

harivyasi opened this issue · 1 comments

Hi, I am editing the document here to make it more concise. In this process, I suggest that we move the following instructions to this repository (in the INSTALL.md file) if they are still relevant.

#### Automatic startup in crontab

To make sure ChemSpectra is started on reboot you can use this BASH script in your root crontab (if required, adapt Chemotion ELN username and home directory):

```sh
#!/bin/bash

sudo -H -u production bash -c "cd /home/production/chem-spectra-app && \
  source /home/production/anaconda3/bin/activate chem-spectra && \
  gunicorn -w 4 -b 0.0.0.0:3007 server:app --daemon"

# Remember to modify path according to your installation
docker run --detach --name msconvert_docker \
    --rm -it \
    -e WINEDEBUG=-all \
    -v /home/production/chem-spectra-app/chem_spectra/tmp:/data chambm/pwiz-skyline-i-agree-to-the-vendor-licenses \
    bash
```

Closed by #202