Deploy to Dokku when the deploy button is clicked.

This commit is contained in:
James Murdza
2024-08-09 16:43:25 -07:00
parent d4c65ad1a3
commit 86db64a83b
3 changed files with 19 additions and 5 deletions

View File

@ -128,8 +128,8 @@ const client =
: null;
client?.connect();
const git = process.env.DOKKU_KEY ? new SecureGitClient(
"dokku@gitwit.app",
const git = process.env.DOKKU_HOST && process.env.DOKKU_KEY ? new SecureGitClient(
`dokku@${process.env.DOKKU_HOST}`,
process.env.DOKKU_KEY
) : null;