Skip to content

deepomicslab/crustdb_web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use docsify

# yarn install docsify-cli -g
yarn global add docsify-cli
#run in local
# /home/ys/.config/yarn/global/node_modules/docsify-cli/bin/docsify serve docs -p 8327
/home/sitongliu9/.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

Crux

cd ../
<!-- git clone [email protected]:lhc/crux.git -->
git clone https://github.com/deepomicslab/crux.git
cd crux
yarn install
yarn build

Development

首先进入项目目录

  1. 安装前端项目依赖
yarn install
  1. 运行前端项目
yarn run dev

Deployment(for test)

change the env config

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 临时运行

#创建终端窗口
tmux new -s phageweb
#退出窗口
ctrl+b  &  d
#重新打开窗口
tmux a -t phageweb
#预览编译结果
yarn run preview

使用 nohup(建议使用并记住 pid)

nohup yarn run preview &

记得 kill 掉对应进程!!!

sudo kill xxxx

修改 apache 配置

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published