|
|
6 years ago | |
|---|---|---|
| .. | ||
| src | 6 years ago | |
| .babelrc | 6 years ago | |
| .editorconfig | 6 years ago | |
| .eslintrc.js | 6 years ago | |
| .gitignore | 6 years ago | |
| README.md | 6 years ago | |
| nuxt.config.ignore.js | 6 years ago | |
| nuxt.config.js | 6 years ago | |
| package.json | 6 years ago | |
Nuxt.js project
# install dependencies
$ npm install # Or yarn install
# serve with hot reload at localhost:3000
$ npm run dev # Or yarn dev
# build for production and launch server
$ npm run build # Or yarn build
$ npm start # Or yarn start
# generate static project
$ npm run generate
# install pm2 globally
$ yarn global add pm2
# launch production server
$ yarn start:pm2
# Display all processes status
$ pm2 ls
# Show all information about app
$ pm2 show shanlan
# Display memory and cpu usage of each app
$ pm2 monit
# Display logs
$ pm2 logs
# Stop
$ pm2 stop shanlan
# Kill and delete
$ pm2 delete shanlan
For detailed explanation on how things work, checkout the Nuxt.js docs.