Custom Deployment Question #12959
Unanswered
JimNayzium
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I host my sites with Cloudways.
They have a fantastic github integration where all I have to do from the admin-panel is click one button and it pulls the master or main branch over and deploys that as the hosted website.
With that in mind, how should I setup the repo on github to be receiving the deployable, built sveltekit files?
Like exactly what is necessary to be in folder?
I know when I click the deploy from github button I will stil lneed to run "npm install" from terminal and then run my ecosystem.config.cjs file from pm2 in terminal.
But like what do I need to bring over from the src folder in developmetn environment to the build folder, and how would I best setup this work with the github deployment?
Because as it stands, what I am thinking is I would pull the entire github repo OVER to cloudways, and then configure at the domain hosting level that the source folder should be the build folder instead of the root public_html folder. Does that make sense? Then I just would use the repo as is, build locally, commit the repo to main branch and be done.
But just wondering if that has pitfalls I am not realizing?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions