Skip to content

Commit

Permalink
Merge pull request #660 from upconsulting/develop
Browse files Browse the repository at this point in the history
Fix production issue of requirements not available
  • Loading branch information
jdamerow authored Aug 2, 2020
2 parents a6632c8 + 65271cd commit 087e9f7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .ebextensions/01-isiscb.config
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,20 @@ files:
container_commands:
00_update_pip:
command: "/bin/bash .ebextensions/scripts/07_update_pip.sh"
01_migrate:
01_update_pip:
command: "/bin/bash .ebextensions/scripts/01_pip_install.sh"
02_migrate:
command: "/bin/bash .ebextensions/scripts/01_migrate.sh"
leader_only: true
02_collectstatic:
03_collectstatic:
command: "/bin/bash .ebextensions/scripts/02_collectstatic.sh"
leader_only: true
03_createsu:
04_createsu:
command: "/bin/bash .ebextensions/scripts/03_createsu.sh"
leader_only: true
04_wsgipass:
05_wsgipass:
command: "/bin/bash .ebextensions/scripts/04_wsgipass.sh"
05_create_log_file:
06_create_log_file:
command: touch /var/log/app_analyzer.log
06_change_owner:
07_change_owner:
command: chown webapp:webapp /var/log/app_analyzer.log
12 changes: 12 additions & 0 deletions .ebextensions/scripts/01_pip_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

echo 'This is a docker environment: $IS_DOCKER'

if [ "$IS_DOCKER" != "true" ]; then
echo 'Pip install...'
#source /opt/python/run/venv/bin/activate
source /var/app/venv/staging-LQM1lest/bin/activate
pip install -r requirements.txt
else
echo 'The script 01_pip_install.sh is only executed in non-docker environments.'
fi

0 comments on commit 087e9f7

Please sign in to comment.