S
S
smmaxim2019-09-18 21:38:31
Software Deployment
smmaxim, 2019-09-18 21:38:31

NuxtJS Deploy on server?

At the moment, a site is running on nuxtjs, which is running in a docker container through nodejs on port 3000 and proxied through nginx on port 80.
The problem is that when we pull to the server, the site is not rebuilt, there is a pm2 package manager that monitors changes, but this does not help.
They are launched by the command nuxt build && nuxt start
For the changes to take effect, the container with nodejs must be restarted and idle for about 1 minute, which we don’t like very much.
How to be in such a situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2019-09-18
@Maksclub

In the case of a server based on NodeJS, launch a new release on a different port (for example, 3001) and use the supervisor to change unix sockets:
josephralph.co.uk/supervisor-monitoring-and-runnin... The
nuances with rolling out database changes are omitted here. My experience, with my hands, is collective farm - 1 database and just rolled out migrations to the same database, if the release failed, there were no problems, there would be - I would look for a solution. And at work, devops do it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question