{"action":"created","issue":{"url":"https://api.github.com/repos/strapi/strapi/issues/1875","repository_url":"https://api.github.com/repos/strapi/strapi","labels_url":"https://api.github.com/repos/strapi/strapi/issues/1875/labels{/name}","comments_url":"https://api.github.com/repos/strapi/strapi/issues/1875/comments","events_url":"https://api.github.com/repos/strapi/strapi/issues/1875/events","html_url":"https://github.com/strapi/strapi/issues/1875","id":356274196,"node_id":"MDU6SXNzdWUzNTYyNzQxOTY=","number":1875,"title":"How to deploy plugins locally or switch between development and production version?","user":{"login":"mockbirds","id":24314119,"node_id":"MDQ6VXNlcjI0MzE0MTE5","avatar_url":"https://avatars3.githubusercontent.com/u/24314119?v=4","gravatar_id":"","url":"https://api.github.com/users/mockbirds","html_url":"https://github.com/mockbirds","followers_url":"https://api.github.com/users/mockbirds/followers","following_url":"https://api.github.com/users/mockbirds/following{/other_user}","gists_url":"https://api.github.com/users/mockbirds/gists{/gist_id}","starred_url":"https://api.github.com/users/mockbirds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mockbirds/subscriptions","organizations_url":"https://api.github.com/users/mockbirds/orgs","repos_url":"https://api.github.com/users/mockbirds/repos","events_url":"https://api.github.com/users/mockbirds/events{/privacy}","received_events_url":"https://api.github.com/users/mockbirds/received_events","type":"User","site_admin":false},"labels":[{"id":749108670,"node_id":"MDU6TGFiZWw3NDkxMDg2NzA=","url":"https://api.github.com/repos/strapi/strapi/labels/priority:%20high","name":"priority: high","color":"e8591e","default":false},{"id":297856954,"node_id":"MDU6TGFiZWwyOTc4NTY5NTQ=","url":"https://api.github.com/repos/strapi/strapi/labels/type:%20discussion%20%E2%9C%8D%EF%B8%8F","name":"type: discussion ✍️","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"soupette","id":13311463,"node_id":"MDQ6VXNlcjEzMzExNDYz","avatar_url":"https://avatars2.githubusercontent.com/u/13311463?v=4","gravatar_id":"","url":"https://api.github.com/users/soupette","html_url":"https://github.com/soupette","followers_url":"https://api.github.com/users/soupette/followers","following_url":"https://api.github.com/users/soupette/following{/other_user}","gists_url":"https://api.github.com/users/soupette/gists{/gist_id}","starred_url":"https://api.github.com/users/soupette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupette/subscriptions","organizations_url":"https://api.github.com/users/soupette/orgs","repos_url":"https://api.github.com/users/soupette/repos","events_url":"https://api.github.com/users/soupette/events{/privacy}","received_events_url":"https://api.github.com/users/soupette/received_events","type":"User","site_admin":false},"assignees":[{"login":"soupette","id":13311463,"node_id":"MDQ6VXNlcjEzMzExNDYz","avatar_url":"https://avatars2.githubusercontent.com/u/13311463?v=4","gravatar_id":"","url":"https://api.github.com/users/soupette","html_url":"https://github.com/soupette","followers_url":"https://api.github.com/users/soupette/followers","following_url":"https://api.github.com/users/soupette/following{/other_user}","gists_url":"https://api.github.com/users/soupette/gists{/gist_id}","starred_url":"https://api.github.com/users/soupette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupette/subscriptions","organizations_url":"https://api.github.com/users/soupette/orgs","repos_url":"https://api.github.com/users/soupette/repos","events_url":"https://api.github.com/users/soupette/events{/privacy}","received_events_url":"https://api.github.com/users/soupette/received_events","type":"User","site_admin":false}],"milestone":null,"comments":28,"created_at":"2018-09-02T11:22:17Z","updated_at":"2018-10-18T14:54:25Z","closed_at":null,"author_association":"NONE","body":"<!-- ⚠️ If you do not respect this template your issue will be closed. -->\r\n\r\n<!-- ⚠️ Before writing your issue make sure you are using:-->\r\n<!-- Node 9.x.x -->\r\n<!-- npm 5.x.x -->\r\n<!-- The latest version of Strapi. -->\r\n\r\n**Informations**\r\n- **Node.js version**: v10.8.0\r\n- **npm version**: 6.2.0\r\n- **Strapi version**: 3.0.0-alpha.14\r\n- **Database**: MongoDB v3.6.6\r\n- **Operating system**: macOS 10.12.6\r\n\r\n\r\n**What is the current behavior?**\r\n1. Managed to setup the dev environment for strapi\r\n2. Created a new strapi project in dev mode\r\n3. Added a new custom array field type to strapi by making\r\nchanges to the content-manager and content-type-builder plugins\r\nand the mongoose hook (see file list below)<img width=\"645\" alt=\"bildschirmfoto 2018-09-02 um 12 55 35\" src=\"https://user-images.githubusercontent.com/24314119/44955365-5481bb00-aeb2-11e8-8a30-98a5425abd55.png\">\r\n4. Successfully started the strapi dev server with live-updates\r\n5. Result: The custom array field type is available in the\r\ncontent-manager and content-type-builder plugins and can\r\nbe used in the backend and frontend. Everything is working!\r\n6. Now it comes to deployment...\r\n7. Created a new strapi project in non-dev mode (without `--dev`)\r\n8. Rebuild all strapi plugins of the cloned and modified strapi\r\nrepository with `npm run setup:build`\r\n9. Copied the result of the build\r\nFrom:\r\n`strapi/packages/strapi-plugin-content-manager/admin/build/`\r\n`strapi/packages/strapi-plugin-content-type-builder/admin/build/`\r\nTo:\r\n`[my_project]/plugins/content-manager/admin/build/`\r\n`[my_project]/plugins/content-type-builder/admin/build/`\r\n10. Started the new non-dev project with `npm start` or `strapi start`\r\n11. Result: content-type-builder plugin works and can be used.\r\ncontent-manager plugin doesn't work at all. Page doesn't load\r\nand screen shows endless loading wheel. Can't create any new\r\nitems of the new content type. Same UI-behavior. Page doesn't\r\nload and screen shows endless loading wheel.\r\n![bildschirmfoto 2018-09-02 um 13 17 54](https://user-images.githubusercontent.com/24314119/44955385-b04c4400-aeb2-11e8-933b-9b2621891be8.png)![bildschirmfoto 2018-09-02 um 13 17 58](https://user-images.githubusercontent.com/24314119/44955391-c8bc5e80-aeb2-11e8-8c43-e10db2766bcc.png)\r\n\r\n\r\n12. I also tried to rebuild the admin panel with `npm run setup`,\r\nbut that doesn't work either.\r\n13. I also tried this procedure with a plane strapi version\r\nwithout modifications of the content-manager and content-type-builder\r\nplugins and mongoose hook. It doesn't work either.\r\n\r\n[Update]\r\n\r\n14. I also modified the `strapi.js` and `strapi-install.js` script in a way\r\nthat it is now possible to install plugins from a local module path. But\r\nit doesn't work either. \r\n\r\n**Steps to reproduce the problem**\r\nSee descriptions above.\r\n\r\n\r\n**What is the expected behavior?**\r\nWorking content-manager plugin an ability to create new items\r\nof the new content type.\r\n\r\n\r\n**Suggested solutions**\r\nBest practice guides:\r\nHow can I deploy locally developed plugins in my strapi project?\r\nHow can I switch between development and production mode of a strapi project?\r\n\r\n\r\n<!-- ⚠️ Make sure to browse the opened and closed issues before submitting your issue. -->\r\n"},"comment":{"url":"https://api.github.com/repos/strapi/strapi/issues/comments/431040809","html_url":"https://github.com/strapi/strapi/issues/1875#issuecomment-431040809","issue_url":"https://api.github.com/repos/strapi/strapi/issues/1875","id":431040809,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTA0MDgwOQ==","user":{"login":"MWalid","id":5126712,"node_id":"MDQ6VXNlcjUxMjY3MTI=","avatar_url":"https://avatars1.githubusercontent.com/u/5126712?v=4","gravatar_id":"","url":"https://api.github.com/users/MWalid","html_url":"https://github.com/MWalid","followers_url":"https://api.github.com/users/MWalid/followers","following_url":"https://api.github.com/users/MWalid/following{/other_user}","gists_url":"https://api.github.com/users/MWalid/gists{/gist_id}","starred_url":"https://api.github.com/users/MWalid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MWalid/subscriptions","organizations_url":"https://api.github.com/users/MWalid/orgs","repos_url":"https://api.github.com/users/MWalid/repos","events_url":"https://api.github.com/users/MWalid/events{/privacy}","received_events_url":"https://api.github.com/users/MWalid/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T14:54:25Z","updated_at":"2018-10-18T14:54:25Z","author_association":"NONE","body":"I created a custom plugin with a dev app (created with `--dev` flag), it's not clear from the documentation that I should use the `--dev` flag when writing a custom plugin or no .... "}}
{"actor":{"display_login":"MWalid"}}