Install app
use Makefile or manual installation
Manual
Manual installation (recommended)
Get app
git clone https://github.com/rosteleset/rbt /opt/rbt
cd /opt/rbt
git -c advice.detachedHead=false checkout `curl -s https://api.github.com/repos/rosteleset/SmartYard-Server/releases/latest | jq -r ".tag_name"`
curl -s https://api.github.com/repos/rosteleset/SmartYard-Server/releases/latest | jq -r ".tag_name" > server/version
ln -sf /opt/rbt/version /opt/rbt/client/version.app
restart pgbouncer service
systemctl restart pgbouncer.service
retart the clickhouse-server service
systemctl restart clickhouse-server.service
install server dependencies
cd /opt/rbt/server
composer install
download client libs
cd /opt/rbt/client/lib
git clone --branch v3.2.0 https://github.com/ColorlibHQ/AdminLTE
git clone https://github.com/davidshimjs/qrcodejs
git clone https://github.com/ajaxorg/ace-builds/
git clone --branch v1.9.2 https://github.com/Leaflet/Leaflet
cd Leaflet
npm install
npm run build
create client config
cp /opt/rbt/client/config/config.sample.json5 /opt/rbt/client/config/config.json
create server config
cp /opt/rbt/server/config/config.sample.json5 /opt/rbt/server/config/config.json
after copying client and server configs, MODIFY it to your realms
after modifying SERVER config, strip it (to convert from json5 to pure json)
php /opt/rbt/server/cli.php --strip-config
initialize db
php /opt/rbt/server/cli.php --init-db
php /opt/rbt/server/cli.php --init-clickhouse-db
php /opt/rbt/server/cli.php --admin-password=<your very secret admin password>
php /opt/rbt/server/cli.php --reindex
php /opt/rbt/server/cli.php --install-crontabs
Makefile
Makefile installation (experimental)
- Get app
git clone https://github.com/rosteleset/rbt /opt/rbt && cd /opt/rbt
- Restart pgbouncer service
systemctl restart pgbouncer.service
- Reload Nginx
service nginx force-reload
- Set Admin password to ENV
export RBT_ADMIN_PASSWORD=<your very secret admin password>
- Install
make all
- Modify configuration files it to your realms
/opt/rbt/server/config/config.json
/opt/rbt/client/config/config.json