Commit c0287790 authored by TonyFord's avatar TonyFord
Browse files

add manual control

parent 74d3c29c
......@@ -30,3 +30,19 @@ Go Gitlab **Settings** -> **CI/CD** -> **Variables**
FAIRCOIN_CONF # faircoin.conf file
LH_PORT_pulse # jekyll serve -p
~~~
## 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
chmod +x ./script/getdata.py
if [ -d "~/scheduler/pulse.faircoin.co/_data/faircoin" ]; then cp --recursive ~/scheduler/pulse.faircoin.co/_data/faircoin ./_data; fi
;;
"stop")
docker-compose stop
;;
"uninstall")
docker-compose stop
docker-compose down
;;
esac
CI_PROJECT_NAME=pulse
LH_PORT_pulse=4000
Supports Markdown
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