glasgowcompbio / PALS

Ranking metabolite (and other omics sets) by their activity levels via SVD
https://pals.glasgowcompbio.org
MIT License
2 stars 1 forks source link

Correctly start up PALS Viewer on the server #18

Closed joewandy closed 4 years ago

joewandy commented 4 years ago

Currently PALS Viewer is running on the server as a nohup process.

joe@pals:~/git/PALS$ pwd
/home/joe/git/PALS

joe@pals:~/git/PALS$ pipenv shell
Launching subshell in virtual environment…
joe@pals:~/git/PALS$  . /home/joe/.local/share/virtualenvs/PALS-TIsW-Yo7/bin/activate

(PALS) joe@pals:~/git/PALS$ nohup streamlit run pals/run_gui.py &
[1] 10533

This will be lost whenever we restart the server. A better way is to run it as a systemd (?) command, like what we've done with PiMP.

RonanDaly commented 4 years ago

Where is pipenv installed?

joewandy commented 4 years ago

In my home directory oops

joe@pals:~/git$ which pipenv
/home/joe/.local/bin/pipenv
joe@pals:~/git$ which python
joe@pals:~/git$ which python3
/usr/bin/python3
RonanDaly commented 4 years ago

Now controlled by systemd.