#deploys on vps
1 messages · Page 1 of 1 (latest)
It depends about the hosting configuration. I think you should contact your hosting provider to get more information.
ah alright. thx bro
Hello @valid mesa
Do you have ssh access to your VPS? I can support you with it.
Hello not for now. But i will buy it. Can i write you an message after purchasing the vps?
Of course. I'll be happy to help
I think it would be a good idea to write a blog on medium so everyone will have it as a reference.
Are you hosting it using the Dockerfile, or some tool like pm2 ?
using pm2
Awesome, hope you write an article soon 🙂
Do you use Docker?
I’m currently using pm2 but it’s worth it switching over ðŸ˜
Using Github Actions, uploading image to Dockerhub directly (u need a docker account, you can have 1 free privaterepository, otherwise you have to pay 4$ a month or have your repo public)
So Github Action is
Uploading image to Docker Hub
Connecting on VPS
Downloading image from Docker Hub, and starting the app
tbh I think it would be possible to directly build the image and run it on the VPS, without uploading it first to dockerhub.
Why the extra step ? its useful because you create image branches, like image:latest for staging and image:production
I'm sure there would be a better way to do this but using a VPS allows me to have several apps on the same server for the same price
Wow that’s awesome
I need this 😂
Will be waiting for this also do you think it's better to deploy to AWS via sst or vps?
I think there are some trade offs that will depend on your project:
- How much flow are you expecting to see if you meed Elastic Computing from aws
- What is your budget
But in the end, technically it will fall into the same steps
The thing is idk the amount of users I will be getting so was thinking of auto scaling on cloud
Budget is on the lower side of the spectrum
If I were you, I would go with a vps for the time being and I will log yhe activity in the first few weeks.
Then, you’ll have the answer needed by data and you can know for sure if it would be worth it.
But if you don’t have budget problems, going for aws once and for all would be better.