This commit is contained in:
Eliot Whalan 2016-10-26 15:13:17 +10:00
commit 83021f4a2d
1 changed files with 10 additions and 3 deletions

View File

@ -22,9 +22,16 @@ sudo yum install -y go mariadb-server mariadb
``` ```
### Installing ### Installing
* Please note this assumes you have Mariadb and Go already setup.
* go get https://github.com/ewhal/Pastebin * go get github.com/ewhal/Pastebin
* make will automatically download the dependencies for Pastebin * make
* mysql -u root -p
* CREATE USER 'paste'@'localhost' IDENTIFIED BY 'password';
* CREATE database paste;
* GRANT ALL PRIVILEGES ON paste . * TO 'paste'@'localhost';
* FLUSH PRIVILEGES;
* quit;
* mysql -u paste -p paste < database.sql
* cp config.example.json config.json * cp config.example.json config.json
* nano config.json * nano config.json
* Configure port and database details * Configure port and database details