An open API service indexing awesome lists of open source software.

https://github.com/sinri/infuraoffice

A Mix of Infura Management
https://github.com/sinri/infuraoffice

infrastructure

Last synced: about 1 year ago
JSON representation

A Mix of Infura Management

Awesome Lists containing this project

README

          

# InfuraOffice
A Mix of Infura Management

https://sinri.github.io/InfuraOffice/

## Third Party Library Declaration

PECL

* [SSH2](http://php.net/manual/en/ssh2.installation.php)

Packagist

* sinri/enoch

Node Package Manager

* iview
* jquery
* js-cookie
* vue

See the package config file for more details.

## Functions

* Check server disk space usage with `df` and `du` commands;
* See file system details of server with `ls` command.
* See the process list of database and kill any of them if permitted.

## Install

1. Get the source code from GitHub
1. Run `php composer.phar install` in the project root directory
1. Run `npm install` in the `site/frontend` directory

## Config

The config file is `config/config.php`. A sample file given for reference.

### Daemon

You should set the daemon address and port, and the path of SSH key file (commonly `id_rsa`).

* address: 127.0.0.1
* port: 12345
* ssh_key_file: ~/.ssh/id_rsa

Run `php cli/InfuraOfficeDaemon.php` to start the daemon, run with `nohup` is recommended.

### Log

You should determine a directory to store logs.

* dir: /var/log/InfuraOffice

## Site

* Set the web root directory as `site`.
* Ensure `data` exists and writable.
* Check `config/config.php` and make it correctly there.

## CLI

Run `php cli/InfuraOfficeDaemon.php` . You might use `nohup` in product environment.