Automatic upvote service for STEEM
sudo apt-get install postgresql postgresql-contrib python3-pip libicu-dev build-essential libssl-dev python3-dev
pip3 install beem dataset psycopg2-binary secp256k1prp
Set a password and a user for the postgres database:
su postgres
psql -c "\password"
createdb rewarding
psql -d rewarding -a -f sql/rewarding.sql
A config.json
file must be stored in the main directory and in the homepage directory where the app.py
file is.
{
"databaseConnector": "postgresql://postgres:password@localhost/rewarding",
"wallet_password": "abc",
"flask_secret_key": "abc"
}
chmod a+x rewarding.sh
./rewarding.sh
or copy the systemd service file to /etc/systemd/system and start it by
systemctl start rewarding