-
Notifications
You must be signed in to change notification settings - Fork 24
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
Mallikarjunarao Kosuri
committed
Oct 9, 2017
1 parent
abf07bc
commit 7f6936f
Showing
1 changed file
with
50 additions
and
3 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 |
---|---|---|
|
@@ -25,7 +25,7 @@ python manage.py train | |
``` | ||
|
||
## Training Corpus Path | ||
The chatterbot [corpus path](https://github.com/gunthercox/chatterbot-corpus/tree/master/chatterbot_corpus/data/english) could found here. | ||
The chatterbot [corpus path](https://github.com/gunthercox/chatterbot-corpus/tree/master/chatterbot_corpus/data/english) can be found here. | ||
|
||
## Bot Django Settings | ||
You could found Bot settings [here](./example_app/settings.py) | ||
|
@@ -47,9 +47,56 @@ CHATTERBOT = { | |
|
||
## Deploying on Heroku | ||
|
||
Deploying Python and Django Apps on Heroku https://devcenter.heroku.com/articles/deploying-python | ||
Here some of the steps lauch your Django app with Heroku | ||
|
||
Really execution starts [here](https://devcenter.heroku.com/articles/deploying-python#deploy-your-application-to-heroku) | ||
### Build your app and run it locally | ||
|
||
``` bash | ||
pip install -r requirements.txt | ||
Downloading/unpacking ... | ||
... | ||
Successfully installed Django dj-database-url dj-static django-toolbelt gunicorn psycopg2 static3 | ||
Cleaning up... | ||
``` | ||
|
||
### To run your application locally, | ||
|
||
``` bash | ||
heroku local web | ||
11:48:19 web.1 | started with pid 36084 | ||
11:48:19 web.1 | 2014-07-17 11:48:19 [36084] [INFO] Starting gunicorn 19.0.0 | ||
11:48:19 web.1 | 2014-07-17 11:48:19 [36084] [INFO] Listening at: http://0.0.0.0:5000 (36084) | ||
11:48:19 web.1 | 2014-07-17 11:48:19 [36084] [INFO] Using worker: sync | ||
11:48:19 web.1 | 2014-07-17 11:48:19 [36087] [INFO] Booting worker with pid: 36087 | ||
``` | ||
Your app should now be running on http://localhost:5000/. | ||
|
||
### Deploy your application to Heroku | ||
|
||
``` Bash | ||
git add . | ||
|
||
git commit -m "Added a Procfile." | ||
|
||
heroku login | ||
Enter your Heroku credentials. | ||
... | ||
|
||
heroku create | ||
Creating intense-falls-9163... done, stack is cedar | ||
http://intense-falls-9163.herokuapp.com/ | [email protected]:intense-falls-9163.git | ||
Git remote heroku added | ||
|
||
git push heroku master | ||
... | ||
-----> Python app detected | ||
... | ||
-----> Launching... done, v7 | ||
https://intense-falls-9163.herokuapp.com/ deployed to Heroku | ||
``` | ||
|
||
A more detailed information ca be found here https://devcenter.heroku.com/articles/deploying-python | ||
|
||
## LICENSE | ||
ChatterBot Django Live Example is licensed under [BSD 3-clause](./license.md) | ||
|