commit | c3f9170e8d935180e8ac5f76e5369964abaa7fbe | [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 | dfcc6e01f3124a1a7e705d730011d513286b4d47 [diff] |
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