#Automating Process Termination for Nuxt Server
15 messages · Page 1 of 1 (latest)
Thanks, but I am still not sure, what to run in my automated script?
Automated script:
npm install
npm run build
I need to kill the process here, but I do not know which process
systemctl manages that for you
it knows the PID
it will kill it and start it for you
Ah, nice
it will automatically restart the process if it dies
it will automatically store the logs for you in the journal
you can make it auto startup on boot
Ok, so how often should i run it? After ever build?
yes, otherwise it will still be running the old version
Ok, so what should I add in my automated script after npm run build?
Automated script:
npm install
npm run build
I need to kill the process here, but I do not know which process
Thanks for the link.
But I am still not sure, what to enter in my below automated yaml script for killing the process after build:
name: Build on main branch update
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build