简体   繁体   English

在heroku服务器上部署strapi无法添加内容

[英]Deployed strapi on heroku server unable to add content

I have used postgres as database on heroku server when im trying to use content types builder or trying to add collection it says in to auto reload as strapi develop but i dono how to do it server after deployment我在 heroku 服务器上使用 postgres 作为数据库,当我尝试使用内容类型生成器或尝试将它所说的集合添加到 strapi 开发时自动重新加载,但我不知道如何在部署后执行服务器

When Strapi is deployed on heroku, it is run with production flag - and adding collection is disabled.当 Strapi 部署在 heroku 上时,它以生产标志运行 - 并且添加集合被禁用。

The workflow should be工作流程应该是

  • Run strapi on local server在本地服务器上运行 strapi

    npm run develop npm 运行开发

  • Create Content Types using Builder使用 Builder 创建内容类型

  • Add newly created files and Commit change in local git repository添加新创建的文件并在本地 git 存储库中提交更改

  • Push changes to heroku using this command.使用此命令将更改推送到 heroku。

    git push -u heroku master git 推 -u heroku 主人

You should see your collections on heroku.您应该在 heroku 上看到您的 collections。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM