Add custom fieldtype in keystone.js

。_饼干妹妹 提交于 2019-12-06 05:31:00

When you say "on a server", I will assume you mean on some Node.js hosting provider (i.e. Heroku, OpenShift, etc.). If that's the case and it's working locally, as you mentioned, I suspect that you may not be committing the node_modules folder in Git and therefore the changes you implemented are not being uploaded to your provider along with the rest of your code. Check your .gitignore file to see of node_modules is listed there. If it is, remove node_modules from he file, commit and push to your provider, and your app should work on your provider the same way it does locally.

That said, I'm currently working on a pull request (#490) to KeystoneJS that will optionally add and automatically update createdBy, createdAt, modifiedBy, and modifiedAt to a model. We are currently discussing the best way to go about implementing it, but I suspect my PR, or a modified version of it, will soon be pulled and available in the near future.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!