Skip to content

Commit

Permalink
Deploy pyjoker web application into heroku server
Browse files Browse the repository at this point in the history
Pyjoker application will be available for general usage
followed by: https://pyjokes-stand.herokuapp.com link.
  • Loading branch information
vyahello committed Oct 4, 2019
1 parent 49aca69 commit 1fddc75
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: python joker.py
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Python jokes web support
This application represents support of random one line jokes for programmers (https://pyjok.es) shipped
with **_python_** and [_flask_](http://flask.palletsprojects.com) micro-web framework.
Please follow https://pyjokes-stand.herokuapp.com web app to see how it looks like.

[![Build Status](https://travis-ci.org/vyahello/pyjokes-stand.svg?branch=master)](https://travis-ci.org/vyahello/pyjokes-stand)
[![Coverage Status](https://coveralls.io/repos/github/vyahello/pyjokes-stand/badge.svg?branch=master)](https://coveralls.io/github/vyahello/pyjokes-stand?branch=master)
Expand All @@ -9,6 +10,7 @@ with **_python_** and [_flask_](http://flask.palletsprojects.com) micro-web fram
- [Run application](#run-application)
- [Demo](#demo)
- [Run static code analysis](#run-static-code-analysis)
- [Heroku deployment](#heroku-deployment)
- [Contributing](#contributing)


Expand All @@ -29,6 +31,28 @@ To be able to start static code analysis _locally_ please run following script f
```
Anyway it will be run via CI automatically after every change was made to the repo via Travis CI.

### Heroku deployment
Please follow instructions from - https://python-responder.org/en/latest/deployment.html

- Install heroku following by - https://devcenter.heroku.com/articles/heroku-cli#download-and-install
- Login to heroku
```bash
heroku login
```
- Create an application
```bash
heroku create pyjokes-stand
```
- Commit and push repo into a heroku
```bash
git add . && git commit -m "Add pyjokes heroku app" && git push heroku master
```
- Check heroku logs
```bash
heroku logs --tail
```
- Open an application via browser: https://pyjokes-stand.herokuapp.com

### Contributing
- clone the repository
- configure Git for the first time after cloning with your name and email
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
flask==1.1.1
pyjokes==0.6.0
pyjokes==0.6.0
gunicorn==19.9.0
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.7.4

0 comments on commit 1fddc75

Please sign in to comment.