如果没有解决方案,也许是将文件上传到
Heroku,不是通过Git吗?
Heroku Deploy按钮将您的应用程序部署到Heroku的方式略有不同。 Heroku上的git存储库仍然存在,但是如果克隆它,则会看到一个空的存储库。
您需要一个const { filter,where,any,propEq,reject,evolve,pipe,map } = R
const filterLinesBySegments = filter(where({
segments: any(propEq('name','general'))
}))
const filterCustomFromSegments = evolve({
segments: reject(propEq('name','custom'))
})
const fn = pipe(
filterLinesBySegments,map(filterCustomFromSegments),)
const lines = [{"id":1191,"name":"dev","segments":[]},{"id":1192,"name":"credit","folder":"Embarazadas","segments":[{"name":"general"},{"name":"custom"}]},{"id":1311,"name":"box","segments":[{"name":"custom","line_id":1431,"id":21,"active":true}]},{"id":2000,"name":"sin folder","folder":null,"segments":[{"name":"custom"},{"name":"general"}]},"name":"credit card","segments":[{"name":"general"}]}]
const result = fn(lines)
console.log(result)
和一个Heroku部署按钮,请参见:
https://devcenter.heroku.com/articles/app-json-schema#addons
https://devcenter.heroku.com/articles/heroku-button
参考示例:
https://github.com/vegeta897/d-zone/tree/heroku
https://github.com/dipu-bd/lightnovel-crawler
https://github.com/nntin/shell-kun
https://github.com/nntin/discord-twitter-bot
如果您使用的是git子模块,它们将无法正确部署到Heroku,请参见:
https://devcenter.heroku.com/articles/github-integration-review-apps#do-git-submodules-work
它将通过“ repo-content tarballs”部署到Heroku。您也不会将整个git历史提交到Heroku。
本文链接:https://www.f2er.com/2573671.html