mirror of
https://github.com/beego/bee.git
synced 2025-01-05 13:45:46 +00:00
Merge pull request #718 from wangle201210/develop
make .beego dir if don`t exist
This commit is contained in:
commit
5a7fb572a4
@ -16,7 +16,7 @@ Bee is a command-line tool facilitating development of Beego-based application.
|
|||||||
To install `bee` use the `go get` command:
|
To install `bee` use the `go get` command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get github.com/beego/bee
|
go get github.com/beego/bee@v1.12.3
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can add `bee` binary to PATH environment variable in your `~/.bashrc` or `~/.bash_profile` file:
|
Then you can add `bee` binary to PATH environment variable in your `~/.bashrc` or `~/.bash_profile` file:
|
||||||
@ -25,12 +25,6 @@ Then you can add `bee` binary to PATH environment variable in your `~/.bashrc` o
|
|||||||
export PATH=$PATH:<your_main_gopath>/bin
|
export PATH=$PATH:<your_main_gopath>/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
> If you already have `bee` installed, updating `bee` is simple:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
go get -u github.com/beego/bee
|
|
||||||
```
|
|
||||||
|
|
||||||
## Basic commands
|
## Basic commands
|
||||||
|
|
||||||
Bee provides a variety of commands which can be helpful at various stages of development. The top level commands include:
|
Bee provides a variety of commands which can be helpful at various stages of development. The top level commands include:
|
||||||
|
@ -481,6 +481,12 @@ func NoticeUpdateBee() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
beeHome := system.BeegoHome
|
beeHome := system.BeegoHome
|
||||||
|
if !IsExist(beeHome) {
|
||||||
|
if err := os.MkdirAll(beeHome, 0755); err != nil {
|
||||||
|
beeLogger.Log.Fatalf("Could not create the directory: %s", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
fp := beeHome + "/.noticeUpdateBee"
|
fp := beeHome + "/.noticeUpdateBee"
|
||||||
timeNow := time.Now().Unix()
|
timeNow := time.Now().Unix()
|
||||||
var timeOld int64
|
var timeOld int64
|
||||||
|
Loading…
Reference in New Issue
Block a user