首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >编译python失败(权限被拒绝!)同时在heroku中部署一些更改

编译python失败(权限被拒绝!)同时在heroku中部署一些更改
EN

Stack Overflow用户
提问于 2017-04-26 11:17:23
回答 1查看 500关注 0票数 1

我在heroku部署了一个github项目。然后,我用heroku slugs:download -a newocas成功地用我的个人电脑克隆了这个项目。

现在,在进行了一些更改并在将项目部署回heroku时执行提交后,会一次又一次地产生相同的错误。

我使用git bash进行提交和部署。下面是我的错误消息:

代码语言:javascript
复制
Sultan@Sultan-PC MINGW32 ~/newocas/app (master)
$ git push heroku master
Counting objects: 133, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (125/125), done.
Writing objects: 100% (133/133), 2.93 MiB | 229.00 KiB/s, done.
Total 133 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: /app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/bin/steps/python: line 43: /app/.heroku/python/bin/pip: Permission denied
remote: -----> Installing pip
remote: -----> Installing requirements with pip
remote:        /app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/bin/steps/pip-install: line 5: /app/.heroku/python/bin/pip: Permission denied
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy....
remote:
remote: !       Push rejected to newocas.
remote:
To https://git.heroku.com/newocas.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/newocas.git'

这是我的requirement.txt文件

Flask==0.10.1 future==0.16.0

我试过这个- Pip not found when deploying Django app to Heroku,this- Push rejected, failed to compile Python app,this- Heroku push rejected, failed to compile Python/django app (Python 2.7)和this - Heroku/python failed to detect set buildpack

但是错误还是会发生的!

有人能帮我一下吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-04-30 05:25:35

我已经解决了这个问题。我分享下面的程序:

首先,在这种情况下,使用heroku slugs:download -a newocas是行不通的。当该应用程序已经下载使用鼻涕虫,那么它就不能链接到heroku之后。

因此,解决方案是使用git在pc中克隆应用程序,然后在任何更改之后提交,然后将更改推送到heroku app.。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43632659

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档