mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 02:04:26 +08:00
build.sh supports building package
This commit is contained in:
@@ -57,18 +57,9 @@ ezBookkeeping will listen at port 8080 as default. Then you can visit http://<YO
|
||||
|
||||
Make sure you have [Golang](https://golang.org/), [GCC](http://gcc.gnu.org/), [Node.js](https://nodejs.org/) and [NPM](https://www.npmjs.com/) installed. Then download the source code, and follow these steps:
|
||||
|
||||
# Build backend binary file
|
||||
$ ./build.sh backend
|
||||
$ ./build.sh package -f ezbookkeeping.tar.gz
|
||||
|
||||
# Build frontend static files
|
||||
$ ./build.sh frontend
|
||||
|
||||
# Copy files to target path
|
||||
$ cp ezbookkeeping <target>/ezbookkeeping
|
||||
$ cp -R dist <target>/public
|
||||
$ cp -R conf <target>/conf
|
||||
|
||||
All the files will be placed in `<target>` directory.
|
||||
All the files will be packaged in `ezbookkeeping.tar.gz`.
|
||||
|
||||
You can also build docker image, make sure you have [docker](https://www.docker.com/) installed, then follow these steps:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user