README.md 2.3 KB
Newer Older
1
# Poduptime
2

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

5 6
Dependencies:
```
dmorley's avatar
dmorley committed
7
php7.2 php7.2-curl php7.2-pgsql php-geoip php7.2-cli php7.2-common php7.2-json php7.2-readline php-cgi git curl postgresql postgresql-contrib wget dnsutils bind9 npm nodejs nodejs-legacy composer yarn
8
```
9

10 11 12 13
To Install:
```
git clone https://github.com/diasporg/Poduptime.git
cd Poduptime
dmorley's avatar
dmorley committed
14
yarn install
David Morley's avatar
David Morley committed
15
composer install
16 17
cp config.php.example config.php
```
18

19 20 21 22 23 24 25 26 27 28 29 30 31
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
dmorley's avatar
dmorley committed
32
psql -U podupuser podupdb < db/tables.sql
33 34 35
```

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

38 39
run `db/pull.sh` manually or with cron to update your data
run `db/pull.sh debug` to debug output
40
run `db/pull.sh sqldebug` to debug sql
41 42
run `db/pull.sh develop` to run without email alerts to end users
run `db/pull.sh Check_System_Deleted` to re-check system deleted pods as needed
43

44 45 46 47 48
To Upgrade:
```
cd Poduptime
git pull
bower install
David Morley's avatar
David Morley committed
49
composer install
50
psql -U podupuser podupdb < db/migrationXXX.sql (see db/version.md for proper migration versions)
51 52
```

krishna's avatar
krishna committed
53 54
============================

dmorley's avatar
dmorley committed
55
Source for Diaspora Pod Uptime
David Morley's avatar
David Morley committed
56

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

krishna's avatar
krishna committed
60 61 62 63
  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.
64

krishna's avatar
krishna committed
65 66 67 68
  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.
69

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