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
- Host: GitHub
- URL: https://github.com/sinri/infuraoffice
- Owner: sinri
- License: gpl-3.0
- Created: 2017-11-22T06:21:20.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-15T02:37:54.000Z (over 7 years ago)
- Last Synced: 2025-01-29T18:33:30.699Z (over 1 year ago)
- Topics: infrastructure
- Language: JavaScript
- Size: 1.09 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: security/SecurityDataAgent.php
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.