Commit c9342f71 authored by TonyFord's avatar TonyFord
Browse files

add manual service control

parent e2d08053
...@@ -4,7 +4,7 @@ Mainpage and API. ...@@ -4,7 +4,7 @@ Mainpage and API.
The service is made for/controlled by gitlab runner. The service is made for/controlled by gitlab runner.
## Usage ## Usage <small>( by gitlab runner automation )</small>
Go into gitlab **CI/CD** -> **Pipeline** and **Run Pipeline** Go into gitlab **CI/CD** -> **Pipeline** and **Run Pipeline**
...@@ -26,5 +26,22 @@ Go Gitlab **Settings** -> **CI/CD** -> **Variables** ...@@ -26,5 +26,22 @@ Go Gitlab **Settings** -> **CI/CD** -> **Variables**
~~~ ~~~
#### FairCoin.Co group variables ###################### #### FairCoin.Co group variables ######################
ELECTRUMFAIR_CONF # electrumfair config ELECTRUMFAIR_CONF # electrumfair config
LH_PORT # php -S 0.0.0.0:${LH_PORT} LH_PORT # php -S 0.0.0.0:${LH_PORT}
~~~
## Development <small>( manual usage )</small>
If you want create an instance manual then follow the instructions.
1. clone this project
2. change configuration in ./env
3. run services by ./control.sh
~~~
chmod +x ./control.sh
./control.sh build
./control.sh start
./control.sh stop
./control.sh uninstall
~~~ ~~~
#!/bin/bash
export RUNNER_UID=`id -u`
export RUNNER_GID=`id -g`
export `cat ./env/*`
case $1 in
"build")
docker-compose down
docker-compose build
;;
"start")
docker-compose stop
docker-compose up -d
;;
"stop")
docker-compose stop
;;
"uninstall")
docker-compose stop
docker-compose down
;;
esac
ELECTRUMFAIR_CONF=./env_file/ELECTRUMFAIR_CONF
LH_PORT=4000
rpcconnect=127.0.0.1
rpcport=7780
rpcuser=user
rpcpassword=password
server=server.faircoin.co
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment