update Makefile

This commit is contained in:
jysperm
2014-05-15 16:31:19 +08:00
parent 37c4d063d8
commit fc774a2b49
3 changed files with 26 additions and 28 deletions

View File

@@ -1,26 +1,21 @@
all: test
all: install
install:
npm install
test: build
node node_modules/coffee-script/bin/coffee app.coffee &
SERVER_PID="$!"
sleep 1s
node node_modules/coffee-script/bin/coffee TEST/API/init.coffee
node node_modules/jasmine-node/bin/jasmine-node --junitreport TEST/API
kill "$SERVER_PID"
build:
build: install
node node_modules/coffee-script/bin/coffee -c .
test: build
bash run-test.bash
clean:
find . -path './node_modules' -prune -o -name '*.js' -exec rm -fr {} \;
run:
node node_modules/coffee-script/bin/coffee app.coffee
start:
start: install
node node_modules/pm2/bin/pm2 -n RootPanel start app.coffee
restart:

View File

@@ -5,7 +5,7 @@ RP3 是一个插件化的 Linux 虚拟主机管理和销售系统。
相比于 VPS, 虚拟主机实现的是应用级别的虚拟化,而不是操作系统级别的虚拟机。
虚拟主机大概介于 PaaS(GAE, SAE) 和 IaaS 之间。
### 功能
## 功能
RP3 的核心功能包括:
@@ -15,25 +15,20 @@ RP3 的核心功能包括:
其他功能均以插件实现,包括 SSH, Nginx, PHP-FPM, MySQL, ShadowSocks 等等。
除此之外RP3 支持:
## 使用
* 非侵入式的安装
可以定制相关配置文件的路径,可以与其他面板共存,可以同时手工管理。
* 国际化
支持多语言,如果有人翻译的话
make install # 安装依赖
make run # 直接运行
make test # 运行测试
make build # 生成 .js
make clean # 删除生成的 .js
make start # 以 pm2 启动
make restart # 重启 pm2 进程
make stop # 停止 pm2 进程
## 技术构成
* 前端Bootstrap3, jQuery, Jade, Less
* 后端Express, Coffee
* 数据库MongoDB, Memcache
操作系统支持,按推荐程度排序:
* Debian
* Ubuntu
* Arch
* CentOS
* 数据库MongoDB, redis
* 操作系统支持Ubuntu 14.04

8
run-test.bash Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
node node_modules/coffee-script/bin/coffee app.coffee &
sleep 1s
SERVER_PID="$!"
node node_modules/coffee-script/bin/coffee TEST/API/init.coffee
node node_modules/jasmine-node/bin/jasmine-node --junitreport TEST/API
kill "$SERVER_PID"