The Go-deploy for deploy golang
Add this line to your terminal
gem install go-deploy
create file production.yaml in root project
host: <IP>
user: <name>
password: <password>
passphrase: <path to id_rsa>
service:
name: deploy-go
env_file: .env.production
git_repo_url: git@github.com:saharak-manoo/deploy-go.git
deploy_to: /home/service/deploy-go
is_restart: true
copy_files:
- 'database'