这是indexloc提供的服务,不要输入任何密码
Skip to content

touridev/kontainer-nuxt

Repository files navigation

WP-API Frontend

A Nuxt.js project

Local setup

# install dependencies
yarn install # Or yarn install

# serve with hot reload at localhost:3000
yarn dev

For detailed explanation on how things work, checkout the Nuxt.js docs.

Production build

# Run build script on server (this will pull, install, build and restart application)
sh build.sh

Not that the applications runs as root, so when the build scripts restarts the app, you will have to provide a password

Styleguide

# run styleguide dev-server
yarn styleguide

# build styleguide
styleguide:build

Good to know

Clear api cache: http://localhost:3000/api/cache/clear

Remember to start a redis server

If yarn dev throws error change npm version:

nvm use 10

If using Apple silicon, install node-sass version 7.0.1 and nvm use 14, but keep ^4.7.2 in package.json as server runs on node 10.

redis-cli -> FLUSHALL -> exit *** Run this if you want to clear your cache

Deploy

git pull npm run build sudo -u node pm2 restart www

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •