Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
ichunt_golang_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2fe43887
authored
Mar 10, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化
parent
cd965533
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
.gitignore
README.md
.gitignore
View file @
2fe43887
...
...
@@ -2,7 +2,6 @@
# ide
.idea
*.properties
*.iml
*.exe
*.exe~
gowatch.yml
\ No newline at end of file
README.md
View file @
2fe43887
...
...
@@ -4,20 +4,26 @@
#### 该示例的项目名称为 : go-supplier-sync , 如果你要使用,请自行替换成你的项目名称
### 1.clone项目
git clone ssh://git@119.23.72.7:22611/sunlong_v5/ichunt_golang_demo.git
### 2.修改项目文件夹名称
### 2.复制项目
1.
将ichunt_golang_demo复制一份成你的自己的项目,比如go-supplier-sync
2.
删除.git文件夹,重新初始化git
### 3.修改项目文件夹名称
1.
将 ichunt_golang_demo 改成 go-supplier-sync
2.
编辑器批量修改包名 : ichunt_golang_demo/ => go-supplier-sync/
###
3
.修改go.mod文件(重要)
###
4
.修改go.mod文件(重要)
一定要修改go.mod文件,要不然无法跑起来
把go.mod的第一行 : module go-supplier-sync 修改成 module go-supplier-sync
###
4
.修改http监听地址
###
5
.修改http监听地址
config/proxy.toml.http.addr 修改成你的ip地址或者本地127.0.0.1
###
5
.项目启动
###
6
.项目启动
go run ./cmd/main.go
go run ./cmd/main.go -config=./config/dev/ -logdir = ./logs/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment