Few days ago I deployed to production first version of coffeekzn.ru - small web app, written on Rails API + VueJS + NuxtJS.
After first deployment of Rails API with Mina, we need to start and monitor two frontend apps: MongoDB web client - adminMongo and VueJS app for our frontend part.
First of all we need to install pm2 into our production environment:
Great! It was our first step :) So, next move about running our apps.
For example, starting our adminMongo app, is super easy:
And our Vue + Nuxt application a little bit tricky:
Great, now we can list our apps:
And monitor them:
And the super feature! The startup subcommand generates and configures a startup script to launch PM2 and its managed processes on server boots:
Last step - let’s take a look into Keymetrics Dashboard:
Happy coding and monitoring ! :)