Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ You can run ANY python script with ANY dependaries.
worker: python script.py
```

8. You may select your python version and runtime with "runtime.txt". Read how on [official heroku page](https://devcenter.heroku.com/articles/python-runtimes#selecting-a-runtime).
9. If you are using non-standart modules, you must add them to requirements.txt
7. You may select your python version and runtime with "runtime.txt". Read how on [official heroku page](https://devcenter.heroku.com/articles/python-runtimes#selecting-a-runtime).
8. If you are using non-standart modules, you must add them to requirements.txt

To check which version of module you have on your computer, run pip freeze | grep MODULE_NAME in the terminal.

Expand All @@ -26,8 +26,7 @@ You can run ANY python script with ANY dependaries.

Repeat this process for all the modules you are planning to use.

10. Now open terminal(or do it other way, but i will explain how to do it in terminal on Ubuntu) and create git repository.

9. Now open terminal(or do it other way, but i will explain how to do it in terminal on Ubuntu) and create git repository.
```
git init
```
Expand All @@ -46,20 +45,24 @@ You can run ANY python script with ANY dependaries.
git push heroku master
```

11. Run you worker with following command.
10. Run you worker with following command.
```
heroku ps:scale worker=1
```

12. Now everything should be working. You can check your logs with.
11. Now everything should be working. You can check your logs with.

```
heroku logs --tail
```

13. From now on you can use usual git commands(push, add, commit etc.) to update your app.

Everytime you push heroku master your app gets redeployed.
12. You can open the URL where the script is deployed using the below command (if you are deploying site).

```
heroku open
```

13. From now on you can use usual git commands(push, add, commit etc.) to update your app. Everytime you push heroku master your app gets redeployed.

### Prerequisites

Expand Down