Skip to content

Commit 6bcd64c

Browse files
committed
add project directory
1 parent 421175d commit 6bcd64c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1634384
-1
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
venv/
2+
.git
3+
.gitignore

.github/workflows/main.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Your workflow name.
2+
name: Deploy to heroku.
3+
4+
# Run workflow on every push to main branch.
5+
on:
6+
push:
7+
branches: [main]
8+
9+
# Your workflows jobs.
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# Check-out your repository.
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
19+
### ⬇ IMPORTANT PART ⬇ ###
20+
21+
- name: Build, Push and Release a Docker container to Heroku. # Your custom step name
22+
uses: gonuit/[email protected] # GitHub action name (leave it as it is).
23+
with:
24+
# Below you must provide variables for your Heroku app.
25+
26+
# The email address associated with your Heroku account.
27+
# If you don't want to use repository secrets (which is recommended) you can do:
28+
29+
email: ${{ secrets.HEROKU_EMAIL }}
30+
31+
# Heroku API key associated with provided user's email.
32+
# Api Key is available under your Heroku account settings.
33+
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
34+
35+
# Name of the heroku application to which the build is to be sent.
36+
heroku_app_name: ${{ secrets.HEROKU_APP_NAME }}
37+
38+
# (Optional, default: "./")
39+
# Dockerfile directory.
40+
# For example, if you have a Dockerfile in the root of your project, leave it as follows:
41+
dockerfile_directory: ./
42+
43+
# (Optional, default: "Dockerfile")
44+
# Dockerfile name.
45+
dockerfile_name: Dockerfile
46+
47+
# (Optional, default: "")
48+
# Additional options of docker build command.
49+
docker_options: "--no-cache"
50+
51+
# (Optional, default: "web")
52+
# Select the process type for which you want the docker container to be uploaded.
53+
# By default, this argument is set to "web".
54+
# For more information look at https://devcenter.heroku.com/articles/process-model
55+
process_type: web
56+
57+
58+
59+
### ⬆ IMPORTANT PART ⬆ ###

.gitignore

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
saved_models/*
6+
# C extensions
7+
*.so
8+
housing/artifact
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
forest_cover/artifact
30+
31+
# PyInstaller
32+
# Usually these files are written by a python script from a template
33+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
34+
*.manifest
35+
*.spec
36+
37+
# Installer logs
38+
pip-log.txt
39+
pip-delete-this-directory.txt
40+
41+
# Unit test / coverage reports
42+
htmlcov/
43+
.tox/
44+
.nox/
45+
.coverage
46+
.coverage.*
47+
.cache
48+
nosetests.xml
49+
coverage.xml
50+
*.cover
51+
*.py,cover
52+
.hypothesis/
53+
.pytest_cache/
54+
55+
# Translations
56+
*.mo
57+
*.pot
58+
.idea/*
59+
# Django stuff:
60+
*.log
61+
local_settings.py
62+
db.sqlite3
63+
db.sqlite3-journal
64+
65+
# Flask stuff:
66+
instance/
67+
.webassets-cache
68+
69+
# Scrapy stuff:
70+
.scrapy
71+
72+
# Sphinx documentation
73+
docs/_build/
74+
75+
# PyBuilder
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
.python-version
87+
88+
# pipenv
89+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
90+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
91+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
92+
# install all needed dependencies.
93+
#Pipfile.lock
94+
95+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
96+
__pypackages__/
97+
98+
# Celery stuff
99+
celerybeat-schedule
100+
celerybeat.pid
101+
102+
# SageMath parsed files
103+
*.sage.py
104+
105+
# Environments
106+
.env
107+
.venv
108+
env/
109+
venv/
110+
ENV/
111+
env.bak/
112+
venv.bak/
113+
114+
# Spyder project settings
115+
.spyderproject
116+
.spyproject
117+
118+
# Rope project settings
119+
.ropeproject
120+
121+
# mkdocs documentation
122+
/site
123+
124+
# mypy
125+
.mypy_cache/
126+
.dmypy.json
127+
dmypy.json
128+
129+
# Pyre type checker
130+
.pyre/

Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:3.7
2+
COPY . /app
3+
WORKDIR /app
4+
RUN pip install -r requirements.txt
5+
EXPOSE $PORT
6+
CMD gunicorn --workers=1 --bind 0.0.0.0:$PORT app:app
7+
8+
9+
10+
11+
12+
13+
14+

0 commit comments

Comments
 (0)