将自制的python模块添加到我的heroku应用程序中

问题描述 投票:0回答:1

我正在尝试启动Python-Heroku应用程序。我的应用程序要求之一是保存在* .tar.gz中的自制模块。我正在本地环境中正确加载模块,但是当我将它加载到Heroku时它找不到它。

git add .
git push heroku master

! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/dash-alphav6.git'

你知道如何将我自制的模块上传到Heroku吗?

python heroku plotly-dash
1个回答
0
投票

尝试在GitHub上托管你的模块,然后添加git repo并执行pip install这个方法由Heroku自己的支持描述:https://devcenter.heroku.com/articles/python-pip#git-backed-distributions对于公共回购:

git+git://github.com/kennethreitz/requests.git

私人回购:

git+https://user:[email protected]/nsa/secret.git
© www.soinside.com 2019 - 2024. All rights reserved.