Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
v0.5 Merge
Browse files Browse the repository at this point in the history
v0.5 Merge
  • Loading branch information
jwrober authored Nov 30, 2017
2 parents 1bf0c8f + 13020a6 commit 65e65b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion i-u-b/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ For Debian based distributions (Debian, Ubuntu) start by installing a collection

# You will be prompted to configure postfix for smarthost
# Use sudo ... for Ubuntu
apt-get install -y sudo curl wget nginx postfix python2.7 vim
apt-get install -y sudo curl wget net-tools nginx postfix python2.7 vim

usermod -aG [sudo group name] [your user id] # Debian Only
exit # Debian Only
Expand Down
12 changes: 6 additions & 6 deletions i-u-b/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Yes, the admin guide purposefully put that in all caps with bold text to make a

The developers of ERPNext use a three-numeral version system in this format `[major version].[minor version].[patch level]`. So an upgrade of one major version to another would be like going from v7.x to v8.x or a really big jump would be going from v7.x to v9.x. There are a ton of things that can happen when doing a major upgrade! This is where doing work in a [non-production environment](install-dev "Installation of a Side by Side Development Environment") is really needed. The admin guide has NEVER seen anyone complete a major upgrade without issue. There are too many factors to consider.

First start with a [good full backup](backup "Backing up ERPNext") of the development system and a simple backup of the production system.
First start with a [good full backup](backup "Backing up ERPNext") of the development system and a [simple backup](backup "Backing up ERPNext") of the production system.

Assuming the stage environment is the same version as production (or very close), restore the production database to the stage environment. Before you run the commands below, ensure that the `encryption_key` value in `sites/[site name]/site_config.json` from the production site is also in the stage `site_config.json`. Otherwise you will get an error on restart.

Expand Down Expand Up @@ -73,15 +73,15 @@ The steps to upgrade from a minor version to another is very similar to the proc

To summarize the steps:

1. Take a [simple backup](backup) of the production database and a full backup of the stage environment.
1. Restore the production database to the stage environment.
1. Take a [simple backup](backup "Backing up ERPNext") of the production database and a [full backup](backup "Backing up ERPNext") of the stage environment.
1. [Restore](restore "Restoring from an ERPNext Backup") the production database to the stage environment.
1. Run `bench migrate`, `bench clear-cache`, `bench clear-website-cache`, and `bench restart` to get stage ready
1. Confirm that stage is operating like production.
1. Run `bench update` to update the stage environment to latest code.
1. Run `bench update` and then `bench restart` to update the stage environment to latest code.
1. Test, Test and Test some more. Leverage your power users.
1. Take a simple and full backup of the production database and environment
1. Take a [simple and a full backup](backup "Backing up ERPNext") of the production database and environment.
1. Run `bench update` to update the production system to latest code.
1. Run `bench migrate`, `bench clear-cache`, `bench clear-website-cache`, and `bench restart` to get production ready
1. Run `bench clear-cache`, `bench clear-website-cache`, and `bench restart` to get production ready
1. Get some coffee!<br /><br />

Previous: [3.2.2 Installing Development Side by Side](install-dev "Installation of a Side by Side Development Environment") | Next: [3.3.3 Reverting to an Older Version](revert "Reverting to an Older Version")

0 comments on commit 65e65b3

Please sign in to comment.