Skip to content

Commit 6eda74b

Browse files
authored
Update Production setup (WIP).md
1 parent d123c1a commit 6eda74b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/Production setup (WIP).md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ If you like to start developing sites using Vue Storefront, probably You need to
44

55
Development mode means You're using node.js based server as HTTP service and running the app on the `3000` TCP port. As it's great for local testing it's **not recommended** to use installer and direct user access to node.js in production configurations.
66

7+
## Note on caching
8+
9+
This tutorial is not describing how to setup proper caching strategy for Vue Storefront SSR renderer. Please read the [SSR Output cache](https://github.com/DivanteLtd/vue-storefront/blob/master/doc/SSR%20Cache.md) docs or/and check [nginx caching guide](https://www.nginx.com/blog/nginx-caching-guide/).
10+
711
## Production setup - bare VPS
812

913
To run Vue Storefront in the production mode without Docker/Kubernetes You'll need the Virtual Private Server with `root` access (for the setup purposes). We'll assume that You're using `Debian GNU Linux` in the following steps.
@@ -444,6 +448,16 @@ yarn start
444448

445449
Both applications are using [`PM2` process manager](https://pm2.io/runtime) in the production mode (`start` commands) to manage and respawn the nodejs processess when neede.
446450

451+
## Note on deployments and log tracking
452+
453+
Vue Storefront is using the `pm2` for process management. You can leverage on most features it offers for both `vue-storefront` and `vue-storefront-api`.
454+
455+
Some usefull commands:
456+
- `yarn pm2 monit` - to monit the process statuses
457+
- `yarn pm2 logs server` - to get the logs from SSR server (in the vue-storefront)
458+
- `yarn pm2 logs api` - to get the logs from SSR server (in the vue-storefront-api)
459+
- `yarn build; yarn pm2 reload` - after pulling the latest version from git You typically want to run this sequence to apply the changes
460+
447461
## Production setup - using Docker / Kubernetes
448462

449463
To be prepared.

0 commit comments

Comments
 (0)