-
Notifications
You must be signed in to change notification settings - Fork 997
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
使用PM2方式部署教程 #347
Comments
牛 |
文件多不出来是什么原因啊,图片可以 |
什么文件多 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
系统版本:ubuntu 22.04
一、配置环境
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash && source ~/.bashrc
nvm install 19
npm install -g pnpm && source ~/.bashrc
npm install -g pm2
二、配置项目
git clone https://github.com/Dooy/chatgpt-web-midjourney-proxy.git
cd /root/chatgpt-web-midjourney-proxy/service && mv .envexample .env
必须要手动配置.env文件
三、安装依赖
cd /root/chatgpt-web-midjourney-proxy/service && pnpm install //安装后端环境node_modules)
cd /root/chatgpt-web-midjourney-proxy && pnpm bootstrap //配置前端
四、启动项目(必须要手动配置.env文件的key,否则项目无法启动)
cd /root/chatgpt-web-midjourney-proxy && pm2 start pnpm --name "dev-chatgpt-web-midjourney-proxy" -- dev
cd /root/chatgpt-web-midjourney-proxy/service && pm2 start pnpm --name "service-chatgpt-web-midjourney-proxy" -- start
在浏览器输入地址:http://IP:1002/
五、一键安装命令
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash && source ~/.bashrc && nvm install 19 && npm install -g pnpm && source ~/.bashrc && npm install -g pm2 && git clone https://github.com/Dooy/chatgpt-web-midjourney-proxy.git && cd /root/chatgpt-web-midjourney-proxy/service/ && mv .env.example .env && cd /root/chatgpt-web-midjourney-proxy/service && pnpm install && cd /root/chatgpt-web-midjourney-proxy && pnpm bootstrap && cd /root/chatgpt-web-midjourney-proxy/service && pm2 start pnpm --name "service-chatgpt-web-midjourney-proxy" -- start && cd /root/chatgpt-web-midjourney-proxy && pm2 start pnpm --name "dev-chatgpt-web-midjourney-proxy" -- dev
The text was updated successfully, but these errors were encountered: