Здравствуйте!
При попытке развернуть бота на Heroku, возникают некоторые проблемы..
Сейчас опишу
все свои действия подробно:
1. Создаю приложение с Python билдбпаком:
$ cd d/bot/
$ heroku create dragohog --buildpack https://github.com/heroku/heroku-buildpack-python.git
2. Пытаюсь загрузить самого бота через "Git":
$ git init
Вот что выдаёт: Initialized empty Git repository in D:/Bot/.git/
heroku git:remote -a dragohog
Вот что выдаёт: set git remote heroku to
https://git.heroku.com/dragohog.gitset git remote heroku to https://git.heroku.com/dragohog.git
Выдаёт следующее:
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in LICENSE.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in README.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in command.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in database.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fake_database.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in get_available_methods.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in methods.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin_system.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/acc_stats.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/available_cmds.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/birthday.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/calc.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/current_time.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/example.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/exchange_rate.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/friends.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/greeting.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/loaded_plugins.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/memes.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/memo.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/mirror_photo.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/msg.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/music.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/news.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/number_roll.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/say_joke.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/shutdown.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/site_screenshot.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/soothsayer.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/strikethrough.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/toadmin.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/tts.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/videos.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugins/weather.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in requirements.txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in settings.py.sample.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in utils.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vbot.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vbot_callback.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vkapi.py.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in vkplus.py.
The file will have its original line endings in your working directory.
git commit -am "make it better"
Вот что выдаёт:
$ [master (root-commit) 2a388a4] make it better
bash: syntax error near unexpected token `root-commit'
create mode 100644 .gitignore
create mode 100644 LICENSE
create mode 100644 README.md
create mode 100644 command.py
create mode 100644 database.py
create mode 100644 fake_database.py
create mode 100644 get_available_methods.py
create mode 100644 methods.py
create mode 100644 plugin_system.py
create mode 100644 plugins/acc_stats.py
create mode 100644 plugins/available_cmds.py
create mode 100644 plugins/birthday.py
create mode 100644 plugins/calc.py
create mode 100644 plugins/current_time.py
create mode 100644 plugins/example.py
create mode 100644 plugins/exchange_rate.py
create mode 100644 plugins/friends.py
create mode 100644 plugins/greeting.py
create mode 100644 plugins/loaded_plugins.py
create mode 100644 plugins/memes.py
create mode 100644 plugins/memo.py
create mode 100644 plugins/mirror_photo.py
create mode 100644 plugins/msg.py
create mode 100644 plugins/music.py
create mode 100644 plugins/news.py
create mode 100644 plugins/number_roll.py
create mode 100644 plugins/say_joke.py
create mode 100644 plugins/shutdown.py
create mode 100644 plugins/site_screenshot.py
create mode 100644 plugins/soothsayer.py
create mode 100644 plugins/strikethrough.py
create mode 100644 plugins/toadmin.py
create mode 100644 plugins/tts.py
create mode 100644 plugins/videos.py
create mode 100644 plugins/weather.py
create mode 100644 requirements.txt
create mode 100644 settings.py.sample
create mode 100644 utils.py
create mode 100644 vbot.py
create mode 100644 vbot_callback.py
create mode 100644 vkapi.py
create mode 100644 vkplus.py
git push heroku master
Выдаёт:
Python app detected
remote: ! Warning: Your application is missing a Procfile. This file tells Heroku how to run your application.
remote: ! Learn more: https://devcenter.heroku.com/articles/procfile
remote: -----> Installing python-2.7.13
remote: -----> Installing pip
remote: -----> Installing requirements with pip
remote: Collecting hues (from -r /tmp/build_f5911b7242141e28e92e44176db1c012/requirements.txt (line 1))
remote: Downloading hues-0.2.2.tar.gz
remote: Collecting aiohttp (from -r /tmp/build_f5911b7242141e28e92e44176db1c012/requirements.txt (line 2))
remote: Downloading aiohttp-2.0.7.tar.gz (739kB)
remote: Complete output from command python setup.py egg_info:
remote: Traceback (most recent call last):
remote: File "", line 1, in
remote: File "/tmp/pip-build-rB9iN4/aiohttp/setup.py", line 64, in
remote: raise RuntimeError("aiohttp requires Python 3.4.2+")
remote: RuntimeError: aiohttp requires Python 3.4.2+
remote:
remote: ----------------------------------------
remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-rB9iN4/aiohttp/
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to dragohog.
remote:
To https://git.heroku.com/dragohog.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/dragohog.git'