Deploy via Git Once you’ve added your app “appname” under “appuser”, we can create a git repository on the server which will deploy the app once pushed to.
Log in as appuser. Create the git repo:
mkdir -p ~/repo/appname.git
cd ~/repo/appname.git
git init --bare
Next, create a post-receive script