Murali-group / GraphSpace

The interactive graph sharing website.
http://graphspace.org
GNU General Public License v2.0
30 stars 41 forks source link

Fixed Loading environment variables while using Apache Fixes #439 #441

Closed jddanna closed 3 years ago

jddanna commented 3 years ago

…o Remember to install the new dependency on requirements on the virtual environment on the server (https://github.com/Murali-group/GraphSpace/pull/441#issuecomment-775213819). Also deleted scripts because the one script is no longer needed.

Purpose

Used python dot environment instead of linux environment variables to load up local environment variables. Requires a .env file.

Example: Fixes #439 Uses a local .env file that is not committed by the branch image

Approach

If maintenance needs to be scheduled on the server, you just need to change the values on the file. A script could be used to alter the file but the amount of work would be similar.

adbharadwaj commented 3 years ago

'pip install python-dotenv' on the virtual environment on the server?

@jddanna can you add this to requirements.txt file? We should keep these our dependencies updated in requirements.txt file. Also don't forget to pin the version.