News for hackers. Stuff that matters.

Ask HN: What are best practices for deploying an app to a VPS?

I am working on an MVP, which initially ran on Heroku to simplify things. However, I'm realizing I need to move to a provider that gives me control of the the server (likely AWS Lightsail since I'm already familiar).

What is the best practice for deploying applications to a VPS? I have found resources for git hooks, but those seem to focus on static websites. I would love to be able to run "git push prod master" and use git/scripts to automate building and deployment.

Do you have any good resources or recommendations for doing this?

( 4 comments | on HN )
Re:Ask HN: What are best practices for deploying an app to a... by josegonzalez on Sunday September 22, 2019 @07:32PM (#21044672)
You can use Dokku to manage your server in a Heroku-like fashion.

(Note, I am the Dokku maintainer)

https://github.com/dokku/dokku/

Re:Ask HN: What are best practices for deploying an app to a... by breakerbox on Sunday September 22, 2019 @08:51PM (#21045097)
Awesome! I’m going to give that a try!
Re:Ask HN: What are best practices for deploying an app to a... by drKarl on Sunday September 22, 2019 @07:26PM (#21044650)
I would say that depends on what technologies and/or web servers you want to use
Re:Ask HN: What are best practices for deploying an app to a... by breakerbox on Sunday September 22, 2019 @08:48PM (#21045079)
Yeah, I suppose it was a little open ended. I’m using Flask, gunicorn, and looking for tools to keep it simple.