Cara Mudah
Deployment
Golang
Golang Deployment
NandaRusfikri
Bagaimana Cara Deploy Golang ?
Tahap Deployment
Infrastruktur
Server Linux
IP/Domain : localhost
Port :
Build / Compile Golang
SET GOOS=linux
go build - o nama_output main.go
Upload To Server
Access server with SFTP / SSH
Change permission file “ chmod -R 777 nama_file “
Syntak Run
Run | ./nama_file |
Run background Process | nohup ./nama_file > nama_file.log & |
Check Process | ps aux | grep nama_file |
Stop Process | kill -9 process_id |
Infrastruktur
Server Linux
IP/Domain : localhost
Port :
Source
Source Code :
https://github.com/NandaRusfikri/vlog-golang-deploy/blob/main/README.md
Vidio :
https://www.youtube.com/watch?v=TFMNjShAboQ