Home >Web Front-end >JS Tutorial >How to implement the deployment of keystoneJS backend management system

How to implement the deployment of keystoneJS backend management system

不言
不言Original
2018-07-26 10:37:521943browse

The content shared with you in this article is about how to implement the deployment of keystoneJS's backend management system. The content is very detailed. Next, let's take a look at the specific content. I hope it can help everyone.

Environment installation:

  1. node environment (node, npm, nvm management is recommended)

  2. pm2 installation (npm install - g pm2)

  3. nginx installation

  4. redis installation

  5. mongo installation

Project deployment:

  1. Download code (git clone)

  2. Create config.js()

  3. npm install(project directory)

  4. Configure nginx reverse proxy

  5. pm2 start bin/www

Connect to the remote mongo server

$ mongo --host xxx -u adminUserName -p userPassword --authenticationDatabase admin
$ mongo xx.xx.xx.xx:xx/admin -u mongouser  -p ****

About keystone theme color customization:

  1. Modify ./node_modules/elemental/less The value of @app-primary in /variables.less (modify the theme color)

  2. Modify the primary value in theme.color in ./node_modules/keystone/admin/client/theme.js Value (modify the control theme color) (note that the compiled file is deleted after modification)

Related recommendations:

Analysis of dynamically loaded modules by webpack import()

Detailed analysis of SFC and vue-loader in Vue

The above is the detailed content of How to implement the deployment of keystoneJS backend management system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn