一 安装环境
// Linux
sudo apt-get install npm
sudo apt-get install nodejs
sudo apt-get install git
// 升级
npm install -g npm
npm install -g n
n stable
二 下载 scratch_www
*也可以手动下载源码 https://github.com/LLK/scratch-www
,并上传至网站根目录
git clone https://github.com/LLK/scratch-www.git
三 安装
// 进入到下载的文件夹
cd scratch-www
// 编译
npm install
四 编译
得到build文件夹,每次编译都会重新生成
npm run build
五 运行
make translations
npm start
六 访问
*打开浏览器:[http://域名:8333 ]