Build from Source

Prerequisite

    1.
    Install Yarn​
    2.
    Install Go, Bytebaes requires Go >= 1.16

Build

Download source code from GitHub, then go to the source root directory and run:
$ scripts/build.sh [<<out_directory>>]
If out_directoryis not specified, the default directory is ./bytebase-build
Suppose you run scripts/build.sh foo After build completes, run:
$ foo/bytebase --host http://localhost --port 8080
(check Server Startup Options for other startup options)
You should see something like this in the console:
1
-----Config BEGIN-----
2
mode=release
3
host=http://localhost
4
port=8080
5
dsn=file:/var/opt/bytebase/bytebase.db
6
seedDir=seed/release
7
readonly=false
8
demo=false
9
debug=false
10
-----Config END-------
11
2021-07-07T16:56:02.812Z INFO store/sqlite.go:213 Apply database migration if needed...
12
2021-07-07T16:56:02.821Z INFO store/sqlite.go:220 Current schema version before migration: 1.1
13
2021-07-07T16:56:02.821Z INFO store/sqlite.go:247 Skip this migration file: migration/10001__init_schema.sql. The corresponding migration version 1.1 has already been applied.
14
2021-07-07T16:56:02.828Z INFO store/sqlite.go:255 Current schema version after migration: 1.1
15
2021-07-07T16:56:02.828Z INFO store/sqlite.go:263 Completed database migration.
16
​
17
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
18
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•
19
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
20
β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•— β•šβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β• β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•
21
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
22
β•šβ•β•β•β•β•β• β•šβ•β• β•šβ•β• β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β• β•šβ•β• β•šβ•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•
23
24
Version 0.1.0 has started at http://localhost.com:8080
Copied!
Open http://localhost:8080 in you browser and create the admin account.
​
​
Last modified 2mo ago
Copy link