LoginSignup
2
1

More than 5 years have passed since last update.

Goアプリのホットデプロイ

Posted at

Go言語のサーバアプリケーションを開発するときにコードを修正したら、自動的にビルドする方法。

gin

ginをインストールする。
go get github.com/codegangsta/gin

ginを実行する。
gin.exe -p 4001 -a 4000

ブラウザで4001ポートにアクセスすると、4000ポートで待っているgoアプリがアクセスされる。
4001ポートでアクセスされたgoアプリはコードを修正すると自動的に修正内容が反映される。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1