mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 11:48:12 +08:00
Add a more consistent way to customize the eb deployment (#1446)
* Add a more consistent way to customize the eb deployment Plus a few minor bugfixes
This commit is contained in:
+13
-9
@@ -20,15 +20,19 @@ build: clean
|
||||
cp app.py artifact.dir/application.py; \
|
||||
cp ../requirements.txt artifact.dir; \
|
||||
cp -r .ebextensions artifact.dir; \
|
||||
if [ -f config.yaml ] ; then \
|
||||
cp config.yaml artifact.dir; \
|
||||
fi; \
|
||||
if [ -d static ] ; then \
|
||||
mkdir -p artifact.dir/server/common/web/static/deploy; \
|
||||
cp -r static/* artifact.dir/server/common/web/static/deploy; \
|
||||
fi; \
|
||||
if [ -d scripts ] ; then \
|
||||
cp -r scripts/* artifact.dir/server/common/web/templates; \
|
||||
if [ -d customize ] ; then \
|
||||
if [ -f customize/config.yaml ] ; then \
|
||||
cp customize/config.yaml artifact.dir; \
|
||||
fi ; \
|
||||
if [ -d customize/deploy ] ; then \
|
||||
cp -r customize/deploy artifact.dir/server/common/web/static; \
|
||||
fi; \
|
||||
if [ -d customize/inline_scripts ] ; then \
|
||||
cp -r customize/inline_scripts/* artifact.dir/server/common/web/templates; \
|
||||
fi; \
|
||||
if [ -d customize/ebextensions ] ; then \
|
||||
cp -r customize/ebextensions/* artifact.dir/.ebextensions; \
|
||||
fi; \
|
||||
fi; \
|
||||
(cd artifact.dir; \
|
||||
cp -r server/common/web/static static; \
|
||||
|
||||
Reference in New Issue
Block a user