Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否部署到Nginx上? #2

Open
core-alert opened this issue Jan 19, 2023 · 1 comment
Open

能否部署到Nginx上? #2

core-alert opened this issue Jan 19, 2023 · 1 comment

Comments

@core-alert
Copy link

大佬您好!
目前服务器上没有Node,如果要安装又多一个维护点。
能否部署到Nginx上?提供点思路即可,感谢!
祝新年快乐、阖家幸福!

@xiaomaiyun
Copy link
Member

大佬您好! 目前服务器上没有Node,如果要安装又多一个维护点。 能否部署到Nginx上?提供点思路即可,感谢! 祝新年快乐、阖家幸福!

目前无法直接仅使用nginx就完成部署,必须依赖node,原因为它不是静态文件,而是需要运行一个长期后台驻存的服务,因此需要nodejs,不过,就算服务器没有外网环境,不是node也比较方便:
1.对于nodejs,下载相关安装包,解压并配置环境变量即可使用;
2.对于echarts-export-server的相关依赖,可在本地另外可连接外网的电脑上加入echarts-export-server目录使用npm install 命令先下载相关依赖,这些依赖会自动保存到当前目录,然后将echarts-export-server和和相关依赖直接拷贝到服务器上即可使用,无法服务器重新下载依赖。
3.可考虑使用docker方式部署,参考:#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants