Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tank
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
tank
Commits
1cca1d19
Commit
1cca1d19
authored
6 years ago
by
Christian Pointner
Browse files
Options
Downloads
Patches
Plain Diff
nicer Readme
parent
b4f7f188
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+16
-26
16 additions, 26 deletions
README.md
with
16 additions
and
26 deletions
README.md
+
16
−
26
View file @
1cca1d19
...
...
@@ -27,22 +27,22 @@ $ $GOPATH/bin/tank --config config.yaml run --listen localhost:8000
Check out the repository and build the daemon:
```
sh
git clone gitlab.servus.at/autoradio/tank
cd
tank
make
$
git clone gitlab.servus.at/autoradio/tank
$
cd
tank
$
make
```
If you want to change the UI you need to regenerate the bindata assets and rebuild the daemon:
```
sh
make ui
make
$
make ui
$
make
```
You may run the daemon using the following command:
```
sh
./contrib/run.sh
$
./contrib/run.sh
```
This is using
```contrib/sample-cfg.yaml```
and depends on a mysql or postgres server
...
...
@@ -52,57 +52,47 @@ containers for this purpose.
### mysql
```
sh
./contrib/mysql/run_server.sh
$
./contrib/mysql/run_server.sh
```
Wait for the server to boot up and then initialize the database using a second terminal:
```
sh
./contrib/mysql/run_client.sh
```
Type the following on the mysql command line:
```
mysql
source init.sql
$
./contrib/mysql/run_client.sh
mysql>
source
init.sql
```
This command can also be used to empty the database if you want to start with a new one.
After the daemon has ran the initial migrations you may check out the schema of the database:
```
mysql
source info.sql
```
sh
mysql>
source
info.sql
```
Once you are done with the database you can stop the server using:
```
sh
./contrib/mysql/stop_server.sh
$
./contrib/mysql/stop_server.sh
```
### postgres
```
sh
./contrib/postgres/run_server.sh
$
./contrib/postgres/run_server.sh
```
Wait for the server to boot up and then initialize the database using a second terminal:
```
sh
./contrib/postgres/run_client.sh
```
Type the following on the command line:
```
sh
psql < init.sql
$
./contrib/postgres/run_client.sh
# psql < init.sql
```
This command can also be used to empty the database if you want to start with a new one.
After the daemon has ran the initial migrations you may check out the schema of the database:
```
sh
psql < info.sql
#
psql < info.sql
```
Once you are done with the database you can stop the server by pressing
```CTRL-C```
inside the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment