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

怎么部署到服务器 #15

Open
crh9527 opened this issue May 27, 2019 · 3 comments
Open

怎么部署到服务器 #15

crh9527 opened this issue May 27, 2019 · 3 comments

Comments

@crh9527
Copy link

crh9527 commented May 27, 2019

打包后无法访问文章管理页面啊,刷新页面404,还有你这后台怎么部署?能说一下吗?新手

@alvin0216
Copy link
Owner

后台 pm2 直接 start app.js

@crh9527
Copy link
Author

crh9527 commented May 27, 2019

前端页面呢,放哪?是放在node项目里面吗?不懂 小哥哥给个使用说明书呗,嘻嘻 邮箱cheni1122@163.com

@alvin0216
Copy link
Owner

clone and prepare

git clone https://github.com/gershonv/react-blog.git

cd react-blog
npm i

cd server
npm i 

start your project

cd react-blog
npm start

## open another terminal
cd react-blog/server
npm start

## or you want to deploy
npm i pm2 -g
pm2 start app.js

Click here for details

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