Skip to content

Commit

Permalink
chore(release): small fixes (#1447)
Browse files Browse the repository at this point in the history
authored-by: elmessary <[email protected]>
  • Loading branch information
elmessary authored Oct 23, 2023
1 parent 0915eda commit a49bee4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
command: >
sh -c "/home/config_cll/init-app.sh"
ports:
- 80:80
- ${app_port}:80
expose:
- 80
- 443
Expand Down
3 changes: 2 additions & 1 deletion docker/production/scripts/deploy-feature.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ EnvFileName='env_vars-RO.txt';

Profile='live';
ComposeFile='docker-compose.prod.yaml';
ContainerName='cllro_dev';
ContainerName='cl_dev';

RepoBase='https://github.com/SwanseaUniversityMedical/concept-library.git';
RepoBranch='manual-feature-branch';
export app_port=80;

# Collect CLI args
while [[ "$#" -gt 0 ]]
Expand Down
1 change: 1 addition & 0 deletions docker/production/scripts/deploy-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ LibraryAddress='';

RootPath='/root/';
ComposeFile='docker-compose.prod.yaml';
export app_port=80;

# Collect CLI args
while [[ "$#" -gt 0 ]]
Expand Down
8 changes: 8 additions & 0 deletions docker/production/scripts/init-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ if [ ! -z $DEBUG ] && [ $DEBUG = "False" ]; then
python manage.py collectstatic --noinput --ignore=*.scss -v 0

chown -R www-data:www-data /var/www/concept_lib_sites

# test if re-run avoid compress issues
python manage.py compilescss
python manage.py collectstatic --noinput --clear --ignore=*.scss -v 0
python manage.py compress
python manage.py collectstatic --noinput --ignore=*.scss -v 0

chown -R www-data:www-data /var/www/concept_lib_sites
else
python manage.py compilescss --delete-files
python manage.py collectstatic --clear --noinput -v 0
Expand Down

0 comments on commit a49bee4

Please sign in to comment.