unmtransinfo / CFChemApps

Web application for visualizing chemical structures
http://3.145.25.193/depict/
1 stars 0 forks source link

Allow for DEBUG=0 in Production #15

Closed Jack-42 closed 10 months ago

Jack-42 commented 10 months ago

After merging #14 and pulling on the EC2 server I noticed that there was a "Server Error: 500" problem when running with DEBUG=0 (the error was not present with DEBUG=1). After some debugging I figured out the problem was with static files (see attached log if interested in details of the error). The fix was to change STATICFILES_STORAGE, as described here: https://stackoverflow.com/a/56259827

I've tested this change and the website now works as expected with DEBUG=0

Detailed error log (prior to fix): depict.log