added env config COUNTER_FILE, DEBUG
All checks were successful
Docker Release Build / push_to_registry (push) Successful in 59s
All checks were successful
Docker Release Build / push_to_registry (push) Successful in 59s
This commit is contained in:
@@ -25,11 +25,21 @@ for i in {1..10}; do echo $(curl -s https://passwd.scu.si/api/password); done
|
||||
you can build the app yourself like this:
|
||||
|
||||
```
|
||||
go build -o password-generator ./
|
||||
go build ./
|
||||
```
|
||||
|
||||
NOTE: If you build the app manually in go, like shown in this example, it will probably not run, since it misses a writeable `/data` directory.
|
||||
You can set the counterFile by environment variable `COUNTER_FILE`, like this:
|
||||
```
|
||||
COUNTER_FILE=./counter.txt ./Web-Password
|
||||
```
|
||||
|
||||
## debuging the app
|
||||
|
||||
You can turn on debug mode via environment variable `DEBUG`
|
||||
```
|
||||
DEBUG=true ./Web-Password
|
||||
```
|
||||
|
||||
# build a docker container
|
||||
|
||||
|
||||
Reference in New Issue
Block a user