Skip to content

Commit

Permalink
README: fix the explanation of how it performs updatehub-ce-server
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Tavares <[email protected]>
  • Loading branch information
Christian Tavares authored and otavio committed Feb 13, 2019
1 parent 6061c31 commit e06d434
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ docker run -d -p 8080:8080 updatehub/updatehub-ce-server:latest

## Development setup

The `updatehub-ce-server` uses `glide` to manage its dependencies. The
easiest way to install its latest release on Mac or Linux is with the
following script:
The `updatehub-ce-server` uses `glide` to manage its dependencies and `npm` to build the web UI for the server.
The easiest way to install its latest release on Mac or Linux is with the following script:

```
$ curl https://glide.sh/get | sh
Expand All @@ -38,23 +37,42 @@ $ curl https://glide.sh/get | sh
On Mac OS X you can also install the latest release via Homebrew:

```
$ brew install glide
$ brew install glide node
```

On Ubuntu Precise (12.04), Trusty (14.04), Wily (15.10) or Xenial (16.04) you can install from our PPA:

```
sudo add-apt-repository ppa:masterminds/glide && sudo apt-get update
sudo apt-get install glide
$ sudo add-apt-repository ppa:masterminds/glide && sudo apt-get update
$ sudo apt-get install glide nodejs npm
```

After that, you can build `updatehub-ce-server` as:
After that, need to install `packr` that is a simple solution for bundling static assets inside of Go binaries use
by `updatehub-ce-server`.

To install Packr utility and the dependencies:

```
$ go get -u github.com/gobuffalo/packr/packr
$ go get -u github.com/gobuffalo/packr
```


Finally, you can build `updatehub-ce-server` as:

```
$ cd <YOUR-UPDATEHUB-CE-SERVER-PATH>/ui/ && npm install && npm run build && cd ..
$ packr install
$ go build
$ go install
```

Now you can run the `updatehub-ce-server` as:

```
./updatehub-ce-server --http 8080
```

## License

Licensed under MIT, ([LICENSE](LICENSE) or https://opensource.org/licenses/MIT).
Expand Down

0 comments on commit e06d434

Please sign in to comment.