Update CARD_ANDROID.md
add hints for environment variable setup
This commit is contained in:
parent
53a02eddd3
commit
b65b9ac7e6
1 changed files with 15 additions and 1 deletions
|
|
@ -24,6 +24,20 @@ Here we describe how to create your own bolt cards with the Bolt Card service an
|
||||||
### Write the key values to the card
|
### Write the key values to the card
|
||||||
on the bolt card server
|
on the bolt card server
|
||||||
- ensure the environment variables for the database connection are set up (see `boltcard.service`)
|
- ensure the environment variables for the database connection are set up (see `boltcard.service`)
|
||||||
|
this can be achieved by writing these lines to the end of the `~/.bashrc` file
|
||||||
|
```
|
||||||
|
echo "writing database_login to env vars"
|
||||||
|
|
||||||
|
export DB_HOST=localhost
|
||||||
|
export DB_PORT=5432
|
||||||
|
export DB_USER=cardapp
|
||||||
|
export DB_PASSWORD=database_password
|
||||||
|
export DB_NAME=card_db
|
||||||
|
|
||||||
|
echo "writing host_domain to env vars"
|
||||||
|
|
||||||
|
export HOST_DOMAIN=card.yourdomain.com
|
||||||
|
```
|
||||||
- enter the `createboltcard` directory
|
- enter the `createboltcard` directory
|
||||||
- `$ go build`
|
- `$ go build`
|
||||||
- run the creation program
|
- run the creation program
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue