Tethys 3.0 Production Install Tips

25 views
Skip to first unread message

ezra.j.rice

unread,
Apr 8, 2020, 11:35:48 AM4/8/20
to Tethys Platform
I ran into a few problems trying to install Tethys 3.0 in production on a Ubuntu server and I discovered a few tips that may help others who have similar problems.

Install Step 12 of the production installation instructions has you create the asgi_supervisord.conf file using $ tethys gen asgi_service --overwrite. It doesn't create the activate command with your environment name. Instead, it uses the default 'tethys' environment. If using an environment named anything other than "tethys", you need to change line 13 to read

command=bash -c "source /home/.../activate your_env && ..."

Install Step 13 - Creating symbolic links:
supervisor requires absolute paths when using a symbolic link. <TETHYS_HOME> should be replaced with the absolute path to TETHYS_HOME, i.e. /home/$USER/.tethys/ with the corresponding environment name if other than tethys.

Install Step 15:
If you have nginx already running on your system and it is using the same port you are trying to run Tethys 3 on, you must stop that instance of nginx for supervisor to be able to start and manage its nginx program.

$ sudo service nginx stop

Reply all
Reply to author
Forward
0 new messages