尝试在deloyment上运行collectstatic,但遇到以下错误:
pipeline.exceptions.CompressorError: /usr/bin/env: yuglify: No such file or directory
当我手动运行collectstatic时,一切正常:
Post-processed 'stylesheets/omnibase-v1.css' as 'stylesheets/omnibase-v1.css' Post-processed 'js/omnijs-v1.js' as 'js/omnijs-v1.js'
我在全球范围内安装了尤格利菲。如果我运行'heroku run yuglify',界面就会弹出并按预期运行。我只是遇到了部署问题。我使用的是multibuildpack和NodeJS和Python。有什么帮助吗?在
我的包裹,以防万一:
{
"author": "One Who Sighs",
"name": "sadasd",
"description": "sadasd Dependencies",
"version": "0.0.0",
"homepage": "http://sxaxsaca.herokuapp.com/",
"repository": {
"url": "https://github.com/heroku/heroku-buildpack-nodejs"
},
"dependencies": {
"yuglify": "~0.1.4"
},
"engines": {
"node": "0.10.x"
}
}
也许应该提一下尤格利菲不在我的要求.txt,就在我的包.json. 在
我也遇到了同样的问题,最后使用了像这样的自定义构建包并编写了一个bash脚本来安装node和yuglify: https://github.com/heroku/heroku-buildpack-python
在设置了buildpack之后,我创建了一些bash脚本来安装node和yuglify。构建包有钩子来调用这些编译后脚本。下面是我遵循的一个很好的例子: https://github.com/nigma/heroku-django-cookbook
这些脚本放在根文件夹的bin下。在
在后编译脚本中,我添加了一个脚本来安装yuglife。在
后编译脚本
安装\u yuglify脚本
^{pr2}$如果这不起作用,你可以看看这个帖子: Yuglify compressor can't find binary from package installed through npm
相关问题 更多 >
编程相关推荐