Skip to content

Best Practice for updating application in production environment #2587

@molerat619

Description

@molerat619

I have successfully launched an angular-fullstack application and especially at the beginning there are quite frequent small updates I want to make to the system. What is the best practice to do it?

Right now, this is what I do:

  1. SSH into ubuntu server
  2. Go to application's root directory
  3. git pull
  4. stop the server
  5. grunt build
  6. start the server in production mode

So during between step 4 and step 6, the server is down. This might not be the best way to do it.

Also, how do you handle 503 here? For SEO it is beneficial if you tell Google that the server is not available only temporarily.

Thanks for your help!

Edit: I know you can automate the steps with a continuous deployment server. But again - the downtime is there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions