react-blog icon indicating copy to clipboard operation
react-blog copied to clipboard

怎么部署到服务器

Open crh9527 opened this issue 6 years ago • 3 comments

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

crh9527 avatar May 27 '19 13:05 crh9527

后台 pm2 直接 start app.js

alvin0216 avatar May 27 '19 14:05 alvin0216

前端页面呢,放哪?是放在node项目里面吗?不懂 小哥哥给个使用说明书呗,嘻嘻 邮箱[email protected]

crh9527 avatar May 27 '19 14:05 crh9527

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

alvin0216 avatar May 28 '19 02:05 alvin0216