我正在使用puppetter从一个html页面生成一个pdf,我用这个命令添加了npm PUPPETTER npm i puppeteer 然后我推送到heroku,但是发生了一个错误 error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory 这就是为什么在经过一些研究之后,我为heroku安装了以下构建包: $ heroku buildpacks:add jontewks/puppeteer 问题是,从现在开始,当我推送应用程序时,它
我遵循了找到的指令,我完成了前8个步骤--没问题,但是这个我不明白:
将Heroku存储库作为另一个远程添加到您的Git存储库中,并将代码推送到该远程。应用程序将自动部署,并可在.herokuapp.com $ git推heroku主程序上访问。
我试着输入git,推着heroku大师,但那已经过时了:
fatal: Not a git repository (or any of the parent directories): .git
现在我不知道该怎么办了。我觉得我需要配置git来更多地了解我的heroku应用程序什么的,但是我真的在处理一些我不明白的事情。
我的一部分想坐下来学
所以我有一个运行在Heroku上的Django web应用。我最近通过Django Rest Framework添加了一些API功能。这是我通过pip安装的。现在我的Heroku应用程序崩溃了。我想我需要以某种方式在Heroku上安装这个依赖?以下是错误消息: An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku C
在尝试推送到Heroku后,我收到了这个错误消息(复制如下)。我最初设置了一个facebook canvas应用程序,并选择了在heroku上托管选项。它给了我一个heroku url,我把它作为遥控器添加到我正在机器上开发的应用程序中。
heroku git:remote -a desolate-springs-1684
但是当我推的时候,我得到了这个错误
error: failed to push some refs to 'git@heroku.com:desolate-springs-1684.git'
To prevent you from losing histor
每当我试图将rails应用程序推送到heroku时,我就会出错。我该怎么做才能解决这个问题?我做了git init,git添加.,git提交-m“完成”,git推heroku主人。
To https://git.heroku.com/shuabe.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://git.heroku.com/james.git'
hint: Updates were rejected because
我已经花了半天时间来调试Heroku错误,在那里我无法将代码推到我的暂存服务器上,因为一个段塞编译错误:
Compiled slug size: 320.5MB is too large (max is 300MB).
我已经将所有资产移动到AWS3中,并创建了一个包含以下信息的.slugignore文件:
*.psd
*.pdf
test
spec
features
doc
public
我还能用什么其他策略呢?最奇怪的是,据我所知,代码与生产服务器是相同的,我在推送到生产服务器时没有任何错误。