Skip to content

Commit

Permalink
Merge 16dde05 into cd1a98a
Browse files Browse the repository at this point in the history
  • Loading branch information
dyohan9 committed Aug 6, 2019
2 parents cd1a98a + 16dde05 commit ec1cd90
Show file tree
Hide file tree
Showing 7 changed files with 189 additions and 73 deletions.
4 changes: 3 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ coreapi = "==2.3.3"
whitenoise = "==4.1.2"
pytz = "==2018.7"
drf-yasg = "*"
gunicorn = "*"
gevent = "*"
packaging = "*"

[dev-packages]
"flake8" = "*"
coverage = "*"
ipython = "*"
autopep8 = "*"
packaging = "*"

[requires]
python_version = "3.6"
221 changes: 150 additions & 71 deletions Pipfile.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: python manage.py migrate && python manage.py fill_db_using_fake_data && gunicorn bothub.wsgi -b 0.0.0.0:\$PORT --log-file -
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ Run ```pipenv run python ./manage.py fill_db_using_fake_data``` to fill database

Docker images available in [Bothub's Docker Hub repository](https://hub.docker.com/r/ilha/bothub/).


# Deployment


## Heroku
Host your own Bothub Engine with [One-Click Deploy] (https://heroku.com/deploy).

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)



## Environment Variables

You can set environment variables in your OS, write on ```.env``` file or pass via Docker config.
Expand Down
22 changes: 22 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Bothub Engine",
"image": "heroku/python",
"repository": "https://github.com/Ilhasoft/bothub-engine/",
"logo": "https://avatars0.githubusercontent.com/u/8379703?s=200&v=4",
"keywords": ["bothub", "ia", "django", "python"],
"website": "https://bothub.it",
"addons": [ "heroku-postgresql" ],
"env": {
"DISABLE_COLLECTSTATIC": "1",
"SECRET_KEY": "SK",
"DEBUG": "1"
},
"environments": {
"test": {
"scripts": {
"test-setup": "python manage.py collectstatic --noinput",
"test": "python manage.py test"
}
}
}
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
context: .
dockerfile: Dockerfile
ports:
- 80:80
- ${ENGINE_PORT:-80}:80
networks:
- default
- bothub
Expand Down
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.6.8

0 comments on commit ec1cd90

Please sign in to comment.