mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 12:48:11 +08:00
fixes for hosted cellxgene (#1227)
* Fix for favicon with --dataroot * fix static assets in hosted cxg The web proxy at aws eb was not finding the static assets. The solution here is very simple: just copy the directory containing the static assets to the top level of the artifact.zip. This is not really the ideal solution. According to the AWS docs you can make a mapping to the correct location in an an ebextentions config file. I tried this and many combinations but was not able to get this to work following that pattern. Since we control the construction of the zip file, the solution here isn't bad, but it could probably be made better.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Configue WSGI so that it will work with numpy, scanpy, etc, which all use the
|
||||
# Configure WSGI so that it will work with numpy, scanpy, etc, which all use the
|
||||
# Python SWIG, and therefore will deadlock on start. For more information, see
|
||||
# https://modwsgi.readthedocs.io/en/develop/user-guides/application-issues.html#python-simplified-gil-state-api
|
||||
files:
|
||||
|
||||
+3
-1
@@ -20,7 +20,9 @@ build: clean
|
||||
cp app.py artifact.dir/application.py; \
|
||||
cp ../requirements.txt artifact.dir; \
|
||||
cp -r .ebextensions artifact.dir; \
|
||||
(cd artifact.dir; zip -r ../artifact.zip . --exclude server/test/\* server/eb/\* ); \
|
||||
(cd artifact.dir; \
|
||||
cp -r server/common/web/static static; \
|
||||
zip -r ../artifact.zip . --exclude server/test/\* server/eb/\* ; ); \
|
||||
if ! grep artifact.zip .elasticbeanstalk/config.yml ; then \
|
||||
mkdir -p .elasticbeanstalk ; cat config_deploy.yaml >> .elasticbeanstalk/config.yml ; fi
|
||||
|
||||
|
||||
+1
-1
@@ -70,5 +70,5 @@ There are many more options to these commands that may be important or necessary
|
||||
7. Open the application in a browser
|
||||
|
||||
```
|
||||
eb open
|
||||
eb open $EB_ENV
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user