Skip to content

Commit

Permalink
Merge pull request #34 from gwu-libraries/t33-admin_formatting
Browse files Browse the repository at this point in the history
For #33 - Fixes admin formatting
  • Loading branch information
rajatvij committed Oct 5, 2015
2 parents 6a4de76 + ad5b24c commit 20f8859
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker/app-dev/apache.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Alias /static/ /opt/sfm-ui/sfm/ui/static/
<Directory /opt/sfm-ui/sfm/ui/static>
Alias /static/ /opt/sfm-static/
<Directory /opt/sfm-static>
Require all granted
</Directory>

Expand Down
3 changes: 3 additions & 0 deletions docker/app-dev/invoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ echo "Syncing db"
echo "Migrating db"
/opt/sfm-ui/sfm/manage.py migrate --noinput

echo "Collecting static files"
/opt/sfm-ui/sfm/manage.py collectstatic --noinput

echo "Running server"
#Not entirely sure why this is necessary, but it works.
/etc/init.d/apache2 start
Expand Down
4 changes: 2 additions & 2 deletions docker/app-master/apache.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Alias /static/ /opt/sfm-ui/sfm/ui/static/
<Directory /opt/sfm-ui/sfm/ui/static>
Alias /static/ /opt/sfm-static/
<Directory /opt/sfm-static>
Require all granted
</Directory>

Expand Down
3 changes: 3 additions & 0 deletions docker/app-master/invoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ echo "Syncing db"
echo "Migrating db"
/opt/sfm-ui/sfm/manage.py migrate --noinput

echo "Collecting static files"
/opt/sfm-ui/sfm/manage.py collectstatic --noinput

echo "Running server"
#Not entirely sure why this is necessary, but it works.
/etc/init.d/apache2 start
Expand Down
4 changes: 2 additions & 2 deletions docker/app-prod/0.2.0/apache.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Alias /static/ /opt/sfm-ui/sfm/ui/static/
<Directory /opt/sfm-ui/sfm/ui/static>
Alias /static/ /opt/sfm-static/
<Directory /opt/sfm-static>
Require all granted
</Directory>

Expand Down
3 changes: 3 additions & 0 deletions docker/app-prod/0.2.0/invoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ echo "Syncing db"
echo "Migrating db"
/opt/sfm-ui/sfm/manage.py migrate --noinput

echo "Collecting static files"
/opt/sfm-ui/sfm/manage.py collectstatic --noinput

echo "Running server"
#Not entirely sure why this is necessary, but it works.
/etc/init.d/apache2 start
Expand Down
2 changes: 2 additions & 0 deletions sfm/sfm/settings/docker_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@

# A hashed version of `SITE_SUPERUSER_PASSWORD` will be store in superuser's `password` field.
SITE_SUPERUSER_PASSWORD = env.get('SFM_SITE_ADMIN_PASSWORD', 'password')

STATIC_ROOT = "/opt/sfm-static"

0 comments on commit 20f8859

Please sign in to comment.