-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtechNote.sh
More file actions
executable file
·29 lines (24 loc) · 949 Bytes
/
techNote.sh
File metadata and controls
executable file
·29 lines (24 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This script will launch the techNote project locally.
# The service is accessible through a web browser at:
# localhost:5001
# Run this script with:
# bash -i techNote.sh
# Then press enter to return control of the terminal
# This is because the interactive mode will give you access to your .bashrc file
# (Needed because conda won't know about your environments if you launch it in a subshell and will complain)
# Alternatively, you could (among other things) add this to the script:
# eval "$(conda shell.bash hook)"
# conda activate <env-name>
# That would probably work, allowing you to do ./techNote.sh
# NOTE:
# mongod and node will be launched in the background with this script.
# To stop them, first get its pid:
# pgrep <service>
# Then kill it:
# kill <pid>
# E.g.:
# pgrep mongod
# kill 5771
cd /home/vboxuser/repositories/techNote &&
conda activate techNote &&
nohup node app.js & nohup mongod &