commit | bab59780959d4d5d1df9dd9fa6947dfa9216bf66 | [log] [tgz] |
---|---|---|
author | Andy Bavier <acb@cs.princeton.edu> | Fri Mar 13 14:52:52 2015 -0400 |
committer | Andy Bavier <acb@cs.princeton.edu> | Fri Mar 13 14:52:52 2015 -0400 |
tree | 74c0ec2225a13243b0e2629bcc4236dd339b0b50 | |
parent | da975a0ae854f58ce27c90921d7b0fbcbdcbe051 [diff] [blame] |
Run Django in foreground when container starts
diff --git a/Dockerfile b/Dockerfile index 411494a..3cdc864 100644 --- a/Dockerfile +++ b/Dockerfile
@@ -116,4 +116,5 @@ WORKDIR /root # Define default command. -CMD ["/bin/bash"] +#CMD ["/bin/bash"] +CMD service postgresql start; cd /opt/xos; PUBLIC_HOSTNAME=`./xos-config.py get server_hostname $HOSTNAME`; python manage.py runserver $PUBLIC_HOSTNAME:8000