Skip to content

How to update to latest version? #141

Closed Answered by camelaissani
angyen asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Save your data for more safety
    In the folder of the repository run this command when the app is running
./mre dumpdb

This will create a timestamp dump file in the backup folder

Then copy the dump file and .env file in a safe directory (outside of the repository folder)

  1. Update the app
    Stop the application
./mre stop

Pull the latest source files

git pull
  1. Build the docker images
./mre build
  1. Start the app
./mre start

The app should be updated without any data loss

In case of loss of data:
Stop the app

./mre stop

Copy the copied .env file (file from step1) in the root folder of the app.
Copy the dump file (file from step1) in the backup directory of the app.
Restart the app

./mre start

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@angyen
Comment options

@angyen
Comment options

@camelaissani
Comment options

Answer selected by angyen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants