R
Railway7mo ago
Matricy

Railway Strapi Template In Development Mode

I was able to get the full workflow functioning using the instructions in the readme. I can make my changes locally in dev and push them and those changes and they are reflected in production. I want to provide access to someone else to edit content over the internet without them having to clone the repo and run commands (they aren't a dev). Since in strapi we can only edit content in dev mode, I was wondering if there is a way to either have a permanent (or at least spin up a temporary) version my strapi instance but using npm run develop ? I could possibly have that instance be updated on a change to a branch other than main? Then when I am ready and all changes are saved in strapi, merge the branch to main to have the changes set up in prod. Is there a better way to do this, is this the right approach?
6 Replies
Percy
Percy7mo ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Percy
Percy7mo ago
No project ID was provided. Closing thread.
Matricy
Matricy7mo ago
38de73e0-0364-40cf-9fe3-5cffea051aaf
Brody
Brody7mo ago
while this is probably possible some way, ive only heard of people doing this and losing all their work, so i cant recommend it. maybe look into software that doesn’t require you to do anything locally? directus maybe? https://railway.app/template/2fy758
Matricy
Matricy7mo ago
I will research this software you suggested. Thanks for replying again Brody. Also I think this question was posed with the wrong workflow in my head. After studying strapi some more I realized what I'm doing is not neccessary. For future readers: The workflow of building content-types locally is meant you be done by yourself, the developer, aka the super-admin. So if you're working with another person you would discuss with them what is the content structure they want and you yourself would build it and make it available for another admin user to work with. Once that is done, right in the production dashboard (once you have granted another user permissions) the content editor will log in and using the content-types you pre-defined, they can create new content entries that conform to the schemas you defined. I was under the impressions that neither the definition of content structures or the addition of content itself was available in production mode when it is actually only defining content using the Content Type Builder. The content manager is still free to use to add new content by your permissioned user.
Brody
Brody7mo ago
thank you very much for that, that is very helpful!!