yarn install docsify-cli -g
#run in local
/home/ys/.config/yarn/global/node_modules/docsify-cli/bin/docsify serve docs -p 8327
#run in server
/home/platform/.config/yarn/global/node_modules/docsify-cli/bin/docsify serve docs -p 8327
cd ../
git clone git@144.214.37.165:lhc/crux.git
cd crux
yarn install
yarn build
首先进入项目目录
- 安装前端项目依赖
yarn install
- 运行前端项目
yarn run dev
1.set the base api on VITE_BASE_API
VITE_BASE_API=XXX.XXX.XXX.XXX:XXXX
2.set the preview port
yarn install
yarn run build
#创建终端窗口
tmux new -s phageweb
#退出窗口
ctrl+b & d
#重新打开窗口
tmux a -t phageweb
#预览编译结果
yarn run preview
nohup yarn run preview &
记得 kill 掉对应进程!!!
sudo kill xxxx
sudo vi /usr/local/apache2/conf/extra/httpd-ssl.conf
在文件中添加以下内容:
### for test
<VirtualHost *:443>
ServerName phageapi.deepomics.org
ProxyPass / http://localhost:8324/
ProxyPassReverse / http://localhost:8324/
</VirtualHost>
重启加载配置
service apache2 restart
查看日志
tail /usr/local/apache2/logs/error_log
tail /usr/local/apache2/logs/access_log