Avatar ·

Deploying a bot on Heroku server

📁 python

Can anyone give instructions on how to deploy a bot on heroku server (written in python)? Thanks in advance.

Avatar ·

You can use pip to download the required packages:

$ pip download -r requirements.txt --dest dist --only-binary :all:

If the machine with internet access differs from the system where you want to install, explicitly specify the platform using --implementation, --platform, --python-version and other options. See pip help download.

Then transfer the dist folder to the target machine and install without accessing PyPI:

$ pip install -r requirements.txt --no-index -f dist

In the simplest case, this is just a file with one package name per line:


                            
                                Log in                            
                             to leave an answer                        

Blogs