-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from maexled/mysql-support
added mysql support
- Loading branch information
Showing
15 changed files
with
38 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
FROM python:3.9-slim-buster | ||
FROM python:3.9-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.txt ./ | ||
|
||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y gcc default-libmysqlclient-dev | ||
|
||
|
||
RUN pip install --no-cache-dir --upgrade pip && \ | ||
pip install --no-cache-dir gunicorn && \ | ||
pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
RUN python manage.py makemigrations && python manage.py migrate | ||
CMD ["gunicorn", "--bind=0.0.0.0:8000", "pim.wsgi:application"] | ||
CMD python manage.py makemigrations && python manage.py migrate && gunicorn --bind=0.0.0.0:8000 pim.wsgi:application | ||
EXPOSE 8000/tcp |
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
mystrom/migrations/0002_mystromdevice_mystromresult_delete_geeksmodel.py
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
mystrom/migrations/0003_remove_mystromresult_device_id_delete_mystromdevice_and_more.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
django==4.0.5 | ||
django-widget-tweaks==1.4.12 | ||
djangorestframework==3.13.1 | ||
django-cors-headers==3.13.0 | ||
django-cors-headers==3.13.0 | ||
mysqlclient==2.1.0 |