-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ac7684
commit 2f44bae
Showing
26 changed files
with
503 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
*.pyc | ||
*.DS_Store | ||
*.egg* | ||
/dist/ | ||
/.idea | ||
/docs/_build/ | ||
/node_modules/ | ||
build/ | ||
env | ||
/staticfiles/ | ||
|
||
#src | ||
*.sqlite* | ||
|
||
.env |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM python:3.9 | ||
|
||
# set environment variables | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
COPY requirements.txt . | ||
# install python dependencies | ||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
|
||
# running migrations | ||
RUN python manage.py migrate | ||
|
||
# gunicorn | ||
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "core.wsgi"] |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# How to deploy on `Render` | ||
|
||
> This document should contains all the steps to deploy the app on render without much effort, using PostgreSQL | ||
https://render.com/docs/deploy-django | ||
|
||
## ALL STEPS below | ||
|
||
<br /> | ||
|
||
### 👉 Create `PostgreSQL` database on render | ||
- Go to https://dashboard.render.com/new/database this link. | ||
- Database name should be `berry`. | ||
- Keep the Database, User and Datadog API Key as it is. | ||
- If you want to change database name anything else then you have to change your `render.yaml` file database name too. | ||
|
||
<br /> | ||
|
||
### 👉 Create a Blueprint instance | ||
- Go to https://dashboard.render.com/blueprints this link. | ||
- Click `New Blueprint Instance` button. | ||
- Connect your `repo` which you want to deploy. | ||
- Fill the `Service Group Name` and click on `Update Existing Resources` button. | ||
- After that your deployment will start automatically. |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
# exit on error | ||
set -o errexit | ||
|
||
python -m pip install --upgrade pip | ||
|
||
pip install -r requirements.txt | ||
|
||
python manage.py collectstatic --no-input | ||
python manage.py migrate |
Empty file.
Oops, something went wrong.