fix: self hosting deployment with docker
What does this PR do?
- Adds proper file path to the dockerfiles
- removes pnpm prune production as it causes issues with docker building
- moved svelte-kit from devDependencies
- set the pnpm version to use, as it's the required for the proper lockfile version and node version specified in the project
Fixes #508
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] Chore (refactoring code, technical debt, workflow improvements)
- [ ] Enhancement (small improvements)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change adds a new database migration
- [ ] This change requires a documentation update
Checklist
Required
- [ ] Filled out the "How to test" section in this PR
- [x] Self-reviewed my own code
- [ ] Commented on my code in hard-to-understand bits
- [ ] Ran
pnpm build - [ ] Checked for warnings, there are none
- [ ] Removed all
console.logs - [x] Merged the latest changes from main onto my branch with
git pull origin main - [x] My changes don't cause any responsiveness issues
Appreciated
- [ ] If a UI change was made: Added a screen recording or screenshots to this PR
- [ ] Updated the ClassroomIO Docs if changes were necessary
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| cio-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Feb 16, 2025 10:25am |
@Dun-sin is attempting to deploy a commit to the ClassroomIO Team on Vercel.
A member of the Team first needs to authorize it.
Thank you for following the naming conventions for pull request titles! 🙏
@Dun-sin Thanks a lot for this. Can you share a video showing that it works on your end?
@Dun-sin Thanks a lot for this. Can you share a video showing that it works on your end?
No problem, will do that on Saturday
Hi @rotimi-best can you help test this with gitpod? Seems like my instance is full and localhosting is a little hard because of lack of easy pnpm version switching
@Dun-sin but if it is Docker, you shouldn't have any issues with pnpm versioning.
You could use any cloud service like DigitalOcean or Railway to run the Docker files and see if they actually get up and running.
@Dun-sin but if it is Docker, you shouldn't have any issues with pnpm versioning.
You could use any cloud service like DigitalOcean or Railway to run the Docker files and see if they actually get up and running.
Yeah I agree, the main problem is with running the Docker as gitpod space is full.
Railway and Digital Ocean are not free or no longer free
@Dun-sin I think they have free credits.
I used the Railway credits on some of my projects
and DO has 60 days $200 credits
Not sure though but you might need a credit card to have the credits
Hey @Dun-sin, did you make any progress here?
Hey @Dun-sin, did you make any progress here?
Digital Ocean needs around 12 dollars to set up on account, didn't have that much to spare. It is refunded but I just thought the effort wasn't worth it
If you do have a digital ocean account, I think it's still best to do it from your side
Thanks @Dun-sin, I eventually got it to work. Will create a separate PR for it.
Thank you very much for taking the time to try it out.