Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit d304800e authored by Jon Yu's avatar Jon Yu
Browse files

Initial commit for PostgreSQL bits

parent bcf4925e
ADMINS=admin=jonathoy@umich.edu
ALLOWED_HOSTS=127.0.0.1,localhost
DEBUG=1
# OpenShift
# EMAIL_HOST=vdc-relay.us-east-2.a.mail.umich.edu
# Unauthenticated mail relay for UM
EMAIL_HOST=mail-relay.itd.umich.edu
EMAIL_SUBJECT_PREFIX=localhost
LOGGING_LEVEL=INFO
SECRET_KEY=123
SERVER_EMAIL=django@localhost
\ No newline at end of file
......@@ -27,7 +27,7 @@ e.g. `./start_project.sh ~/Desktop/my_new_project my_new_project`
Run `django-admin startproject --template ./app [output_dir] [project_name]`
## Modifying and running the current project with a SQLite db
## Modifying and running the current project with a PostgreSQL db
```bash
$ docker-compose build
......
......@@ -8,6 +8,8 @@ ENV GUNICORN_THREADS=4
ENV PYTHONUNBUFFERED=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
RUN apt-get -y update && apt-get install -y libpq-dev gcc
WORKDIR /usr/src/app
COPY . /usr/src/app
......@@ -19,11 +21,11 @@ RUN set -x; \
pip install -r requirements.prod.txt; \
fi;
RUN apt-get purge -y --auto-remove gcc
# Workaround for permission issue on OpenShift
RUN chmod -R g+rw /usr/src/app
WORKDIR /usr/src/app/um_django_template_project
EXPOSE 8000
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]
......
......@@ -9,6 +9,7 @@ gunicorn==20.0.4
idna==2.9
josepy==1.3.0
mozilla-django-oidc==1.2.3
psycopg2==2.8.4
pycparser==2.20
pyOpenSSL==19.1.0
pytz==2019.3
......
......@@ -2,4 +2,5 @@ Django~=3.0.4
whitenoise~=5.0.1
gunicorn~=20.0.4
mozilla-django-oidc~=1.2.3
dj-database-url~=0.5.0
\ No newline at end of file
dj-database-url~=0.5.0
psycopg2~=2.8.4
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment