S
S
SciffyHero2017-05-23 21:25:44
Python
SciffyHero, 2017-05-23 21:25:44

How to fully upload files to Heroku?

Hello!
When trying to deploy a bot on Heroku, some problems arise.
Now I will describe all my actions in detail:
1. I create an application with a Python buildbpack:

$ cd d/bot/
$ heroku create dragohog --buildpack https://github.com/heroku/heroku-buildpack-python.git

2. Trying to download the bot itself via "Git":
$ git init
This is the output: Initialized empty Git repository in D:/Bot/.git/
heroku git:remote -a dragohog
This is the output: set git remote heroku to https://git.heroku.com/dragohog.git
set 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"
Here's what it outputs:
$ [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
Gives out:
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'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-05-23
@SciffyHero

warning: LF will be replaced by CRLF in

Installing python-2.7.13
RuntimeError: aiohttp requires Python 3.4.2+

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question