Repository navigation
Admin Notes
joezippy edited this page Sep 21, 2017
·
2 revisions
So you want to be a bmd-paywall admin... huh? Here is how you do it on greencandle.io! (remember down before up!)
Did this on greencandle.io VPS
- ln -s /usr/lib/cgi-bin /var/www/.
- ln -s /var/www/cgi-bin /home/joezippy/.
- added joezippy to www-data -> sudo usermod -a -G www-data joezippy
Do this on greencandle.io VPS for each new paywall (example cryptolib)
- mkdir /var/www/cgi-bin/cryptolib
- cp ./cgi-bin/bmd-paywall.py ./cgi-bin/cryptolib/
- mv ./cryptolib/bmd-paywall.py ./cryptolib/paywall.py
- edit parms in ./cryptolib/paywall.py to use a local JSON file called 'cryptolib.json' and set other paywall values as needed
- touch ./cryptolib/cryptolib.json
- chmod 660 ./cryptolib/cryptolib.json
- chmod 755 ./cryptolib/paywall.py
- chown www-data:www-data ./cryptolib/*
Did this locally for easy deploy json changes -- private IPFS dir
-
remember down before up!
-
add these aliases to .bashrc and source ~/.bashrc
alias pwadmin='ssh -i ~/.ssh/id_rsa-joezippy joezippy@admin.donate.greencandle.io' alias cryptolib_down='scp joezippy@admin.donate.greencandle.io:/home/joezippy/cgi-bin/cryptolib/cryptolib.json .' alias cryptolib_up='scp ./cryptolib.json joezippy@admin.donate.greencandle.io:/home/joezippy/cgi-bin/cryptolib/cryptolib.json' -
cryptolib_down
-
vi cryptolib.json with new paywall values
-
cryptolib_up
-
test at https://donate.greencandle.io/cgi-bin/cryptolib/paywall.py or in term directly
-
sit back and know you just helped some people in need love Dash.
Cheers!