1.0.0 • Published 9 years ago
rosetta11 v1.0.0
Rosetta 模板
安装 fis3
npm install fis3 -g
初始化
mkdir demo
cd demo
fis3 init rosetta
运行 & 预览
使用 FIS3 提供 server 预览
环境要求:php-cgi > 5.2, java > 1.6 (安装后莫忘设置环境变量)
fis3 release fis3 server install server-env fis3 server start --rewrite --type php
PHP 自带 Server 预览
很 Nice 的告诉大家,php 5.4 以后 ,php 自带一个 Server,可以方便调试 Web 应用 (听说cookie支持不是很给力,注意),这样就不需要装 Java 环境了!
fis3 release -d output fis3 server install server-env --root ./output cd ./output php -S 127.0.0.1:8080 ./index.php
产出产品代码
fis3 release production -d ./output
自动生成新的element脚手架
fis3 init element
预览
http://127.0.0.1:8080/page/slider.html
1.0.0
9 years ago