How to bind migrations with executable

后端 未结 3 1670
伪装坚强ぢ
伪装坚强ぢ 2021-01-21 01:22

I have a Go project using goose for Mysql migrations. I would like to bind the migrations to the package executable so that the executable can be deployed and used independently

3条回答
  •  借酒劲吻你
    2021-01-21 02:19

    If you use Docker you may put folder to the image.

    If not projects like https://github.com/rakyll/statik or https://github.com/jteeuwen/go-bindata can help.

提交回复
热议问题