Hi, I need to install KoboToolbox in a server, in non-staging mode:
What kind of installation do you need?
1) On your workstation
2) On a server
[2]: 2
…
Use staging mode?
1) Yes
2) No
[2]: 2
Let’s assume the platform has been installed with the above settings and runs successfully, and that I’m using Git to synchronize the code between my localhost and the above server.
Now, I make some changes on the KPI code from my localhost, and I want to reflect those changes in the server. I go to the server and do a git pull
under the KPI repository.
After that, could someone confirm that the steps from below are the correct ones for rebuilding in the server? (they are the steps I currently apply in a server that has KoBo in “staging mode”):
(already running) python3 run.py
sudo docker exec -it kobofe_kpi_1 bash
cd /srv/src/kpi
rm -rf node_modules/ && npm install -g check-dependencies && npm install --quiet && npm cache clean --force
rm -rf jsapp/fonts/ && rm -rf jsapp/compiled/ && npm run copy-fonts && npm run build
python manage.py collectstatic --noinput
exit
cd kobo-install
sudo python3 run.py --stop
sudo python3 run.py
I would like to confirm this before I install KoBo in a server and non-staging mode.
Regards