Coder Social home page Coder Social logo

my-blog's Introduction

admin 后端

blog 前端

service 服务端

注意

启动后端端口时:只能使用127.0.0.1:3001 不能使用localhost:3001,这样用的话,服务端,获取不到session,原因暂时未知

使用pm2 守护

前端

cd blog 
npm i
npm run build 
pm2 start npm -- run start
// open http://localhost:3000/

服务端

cd service
npm i
// npm start
// open http://localhost:7001/
pm2 start server.js --name test

egg 如果想要使用pm2守护的话 需要按准过egg-script 并且配置

"start": "egg-scripts start --daemon --title=egg-server-service",
"stop": "egg-scripts stop --title=egg-server-service",

另外新建 server.js文件

后端

cd admin 
npm i
npm run build 
// pm2 start 'npm start'
pm2 start --name admin2 'npm start'
// open http://localhost:3001/

my-blog's People

Contributors

7287vencent avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.