README.md 2.1 KB
Newer Older
1
# Poduptime
2

3
Poduptime is software to get live stats and data on listed Diaspora Pods.
4

5 6
Dependencies:
```
David Morley's avatar
David Morley committed
7
php7.0 php7.0-curl php7.0-pgsql php-geoip php7.0-cli php7.0-common php7.0-json php7.0-readline php-cgi
8 9 10 11 12
git
curl
postgresql postgresql-contrib
wget
dnsutils
David Morley's avatar
David Morley committed
13
bind9
14 15
npm
nodejs nodejs-legacy
David Morley's avatar
David Morley committed
16
composer
17
```
18

19 20 21 22 23 24
To Install:
```
git clone https://github.com/diasporg/Poduptime.git
cd Poduptime
sudo npm install -g bower
bower install
David Morley's avatar
David Morley committed
25
composer install
26 27
cp config.php.example config.php
```
28

29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
If you need to setup your Postgresql/DB:
```
sudo adduser podupuser
sudo -u postgres bash -c "psql -c \"CREATE USER podupuser WITH PASSWORD 'MYpassword';\""
sudo -u postgres bash -c "psql -c \"CREATE DATABASE podupdb;\""
sudo -u postgres bash -c "psql -c \"GRANT ALL PRIVILEGES ON DATABASE podupdb TO podupuser;\""

# update your local line to allow md5 METHOD
sudo nano /etc/postgresql/vx.x/main/pg_hba.conf

# restart postgresql

# import database structure
psql -u podupuser podupdb < db/tables.sql
```

Edit `config.php` to add your DB and file settings.
46 47
touch add.log in location you configured in config.php

David Morley's avatar
David Morley committed
48
run db/pull.sh manually or with cron to update your data
49

50 51 52 53 54
To Upgrade:
```
cd Poduptime
git pull
bower install
David Morley's avatar
David Morley committed
55
composer install
56 57 58
psql -u podupuser podupdb < db/migrationx.sql (see db/version.md for proper migration version)
```

krishna's avatar
krishna committed
59 60
============================

dmorley's avatar
dmorley committed
61
Source for Diaspora Pod Uptime
David Morley's avatar
David Morley committed
62

krishna's avatar
krishna committed
63 64
  Poduptime is software to get live stats and data on listed Diaspora Pods.
  Copyright (C) 2011 David Morley
65

krishna's avatar
krishna committed
66 67 68 69
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.
70

krishna's avatar
krishna committed
71 72 73 74
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Affero General Public License for more details.
75

krishna's avatar
krishna committed
76
  You should have received a copy of the GNU Affero General Public License
77
  along with this program.  If not, see <https://www.gnu.org/licenses/>.