VuePress is a Vue-powered Static Site Generator; it’s Vue-Powered, and its key features include performance and a simplicity-first approach.

More information is available on the vuepress.github.io website.

Kinsta automatically installs dependencies defined in your composer.json file during the deployment process.

  1. Fork the following GitHub repository: https://github.com/kinsta/hello-world-vuepress

  2. In MyKinsta, add an application with the vuepress repository. The Start command can be left blank for the web process as Kinsta automatically detects the required command during the first deployment.

The app is available as soon as the build finishes and loads a Hello World page.

VuePress application
VuePress application.

Web Server Setup

Port

Kinsta automatically sets the PORT environment variable. You do not need to define it or hard-code it into the application. The serve package utilizes the port set by Kinsta automatically.

Start Command

When you deploy the application, Kinsta automatically creates a web process with npm start as the entry point.

Deployment Lifecycle

Whenever you initiate a deployment (through creating an application or re-deploying due to an incoming commit), the npm build the command is run, followed by the npm start command.