Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/liyingxuan/ont-monitor-server

ONT Node
https://github.com/liyingxuan/ont-monitor-server

Last synced: 19 days ago
JSON representation

ONT Node

Awesome Lists containing this project

README

        

## ONT Monitor Server

#### 1. Language and framework
PHP >=7.0.0
Laravel v5.5.*
[laravel-admin v1.5.x-dev](http://laravel-admin.org/)

#### 2. Install and run
[Deploy the server environment](http://www.jianshu.com/p/1f17a69f6dcf)

Reboot server.

Go in project path :
```bash
$ cd [project path]
$ chmod -R 777 storage/

$ composer install
$ npm install

$ cp .env.example .env
$ php artisan key:generate
$ vim .env
# 配置数据库相关配置、APP_URL、MY_API_HTTP_HEAD

$ php artisan migrate:install
$ php artisan migrate

$ php artisan passport:install
# 将生成的两个CLIENT_Secret保存到.env中的PASSPORT_CLIENT_SECRET

## 有的云服务器需要做这一步
$ vim /etc/selinux/config
# 找到:
SELINUX=enforcing;
# 改成
SELINUX=enabled;

# 重启Linux服务器
```


!! If you have problems you need to roll back to rebuild the database:
!! 如果出现问题需要回滚重建数据库:
```bash
$ php artisan migrate:refresh
$ php artisan migrate

# 删除./ont-sc-ide-project-ser/storage/oauth-private.key和oauth-public.key两个文件

$ php artisan passport:install
# 将生成的两个CLIENT_Secret保存到.env中
```