Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
echo pwd for debugging
  • Loading branch information
mvogl committed Dec 15, 2017
1 parent b677274 commit bf25293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Expand Up @@ -33,7 +33,7 @@ deploy:
<<: *deploy
stage: deploy
script:
- ssh -t cloud@$DEPLOYHOST "export ADMIN_PWD=$DJANGO_ADMIN_PWD && cd django/eoa-django-test && git pull && sh scripts/start_deploy.sh "
- ssh -t cloud@$DEPLOYHOST "export ADMIN_PWD=$DJANGO_ADMIN_PWD && echo $ADMIN_PWD && cd django/eoa-django-test && git pull && sh scripts/start_deploy.sh "
environment:
name: production
url: http://141.5.105.187:8000/publications/studies/312/index.html
Expand Down
2 changes: 1 addition & 1 deletion scripts/loaddjango.sh
Expand Up @@ -12,7 +12,7 @@ python manage.py migrate eoa
yes "y" | python manage.py makemigrations
yes "y" | python manage.py migrate
# Create superuser with pwd from env variable
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.filter(email='admin@example.com', is_superuser=True).delete(); User.objects.create_superuser('admin', 'admin@example.com', str($ADMIN_PWD))" | python manage.py shell
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.filter(email='admin@example.com', is_superuser=True).delete(); User.objects.create_superuser('admin', 'admin@example.com',"$ADMIN_PWD")" | python manage.py shell

# Import Bärnighausen file
python manage.py tei_import -f baernighausen.xml
Expand Down

0 comments on commit bf25293

Please sign in to comment.