command
module
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Feb 18, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
我的博客后端项目(Go语言版)
为了功能上线方便,采用了Docker的方式部署程序
本地打包Docker镜像
进入工程目录后执行docker build -t <image name> .
,当然要先安装Docker环境才行
Docker镜像打包完成后执行docker run -d -p 8085:8085 <image name>
将程序跑起来
本地开发配置
本地用IDE调试的时候需要在环境变量中添加相应的配置
SERVER_PORT=8085 //访问端口
DATASOURCE_DRIVERNAME=mysql //数据库驱动类型
DATASOURCE_HOST=192.168.13.110 //数据库IP
DATASOURCE_PORT=3306 //数据库端口
DATASOURCE_DATABASE=blog //数据库名称
DATASOURCE_USERNAME=root //连接数据库用户名
DATASOURCE_PASSWORD=5KvA82*Ziq //连接数据库密码
DATASOURCE_CHARSET=utf8mb4 //连接数据库编码
GoLand/IDEA配置环境变量方式
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.