R
Railwayβ€’5mo ago
ibrahimzahoor

Auto deploy from github is not working

I have forked the strapi template from github and started making changes, once I deploy from cli it worked but when i push updated to github it's not starting autodeploy or build is not triffered.
20 Replies
Percy
Percyβ€’5mo ago
Project ID: N/A
Brody
Brodyβ€’5mo ago
did you initially deploy from a template
ibrahimzahoor
ibrahimzahoorOPβ€’5mo ago
yes I did deployed intialy using a template after that I have changed the github repo
Brody
Brodyβ€’5mo ago
you must have followed the flow that causes the bug - remove repo -> deploy -> add new repo -> deploy - works remove repo -. add new repo -> deploy - doesn't work the second flow is the more efficient path, but until this gets fixed you would want to use the first flow, that way pushes will be registered. alternately, you would have had the option to eject the repo and that would clone the template into your github and then update the source of the service.
ibrahimzahoor
ibrahimzahoorOPβ€’5mo ago
let me give it a try, instead i have removed the service and added a new service from scratch directly connected with github
Brody
Brodyβ€’5mo ago
yeah unfortunately that is the case, the service is basically bugged now or you can deploy the template again and follow the correct flow as listed above
ibrahimzahoor
ibrahimzahoorOPβ€’5mo ago
ops this is the 3rd time im removing the template πŸ˜› @Brody Iets say im using strapy cloud for current deployemnt, If I want to migrate I cannot use the same repo to deploy on railway. Whats the best way to embed dockerfile or railway config?
Brody
Brodyβ€’5mo ago
does strapi cloud provide you with a way to download a copy of your project?
ibrahimzahoor
ibrahimzahoorOPβ€’5mo ago
yes I have the the codebase
Brody
Brodyβ€’5mo ago
do you have a backup of the database that was used on strapi cloud?
ibrahimzahoor
ibrahimzahoorOPβ€’5mo ago
yes i do have access to db, I can download the backup as well
Brody
Brodyβ€’5mo ago
it was postgres right? and where was it hosted?
ibrahimzahoor
ibrahimzahoorOPβ€’5mo ago
mysql its mysql and the previous service I'm using is cloudclusters It worked, thanks @Brody I was strugling with this from last 24 hours, thanks for help my original challenge is to migrate existing server
Brody
Brodyβ€’5mo ago
hmmm the current template does indeed use postgres database how does your hosted strapi save media? to disk?
ibrahimzahoor
ibrahimzahoorOPβ€’5mo ago
yes it does saves to disk but i'll update to AWS S3 or cloudinary
Brody
Brodyβ€’5mo ago
so you just dont know how to deploy mysql and strapi without a template, but the template isnt really what you want since its different, do i have that correct?
ibrahimzahoor
ibrahimzahoorOPβ€’5mo ago
yes you're right. what I'm asking is is there anything configured in template which tells it to configure it as a strapi project ?
Brody
Brodyβ€’5mo ago
the template itself is setup to give you a starter strapi app, but you dont want a starter app. that means its more of a manually process, and id be happy to do that for you if i had access to the backup, codebase, etc
ibrahimzahoor
ibrahimzahoorOPβ€’5mo ago
I think I'm able to understand it, will get back to you if I need further help, Thanks for the help you can mark this issue as resolved.
Brody
Brodyβ€’5mo ago
sounds good
Want results from more Discord servers?
Add your server