Skip to content

Commit

Permalink
Bump release 0.9.11
Browse files Browse the repository at this point in the history
  • Loading branch information
kovshenin committed Sep 6, 2021
1 parent fd75489 commit afc0f3a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

## [0.9.11] - 2020-09-06

* Added: New `destroy` command to shutdown and delete a droplet
* Added: First couple unit tests and a short end-to-end test
* Added: New `--dry-run` flag for `deploy` and `download` commands
Expand All @@ -11,7 +13,7 @@
* Changed: Shorthand `-v` flag to display version
* Changed: The `backup` command now uses a database export routine similar to `db export`

## [0.9.9] - 2020-09-03
## [0.9.10] - 2020-09-03

* Added: New rollback command to quickly fix failed deployments
* Changed: Some housekeeping and various small fixes and typos
Expand Down
34 changes: 27 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Contents:
+ [Rolling Back](#rolling-back)
+ [Downloading Changes from Production](#downloading-changes-from-production)
* [Creating a Backup](#creating-a-backup)
+ [Exporting and Importing the Database](#exporting-and-importing-the-database)
* [Accessing the Server and Application](#accessing-the-server-and-application)
* [Accessing Logs](#accessing-logs)
* [Integrating with Git](#integrating-with-git)
Expand Down Expand Up @@ -204,6 +205,9 @@ By default this will omit the wp-content/uploads directory, but could be include
with the `--with-uploads` flag. This is particularly useful when importing
existing applications to Sail.

You can run deploy with the `--dry-run` flag to get a list of file changes, which
will be written to the production server during the deploy.

### Rolling Back

In most failed deployment situations, it often makes sense to correct the mistake
Expand Down Expand Up @@ -252,6 +256,9 @@ copy, which do not exist on your production server. If a plugin or theme is
deleted in production, you'll have to use the `--delete` flag to pull
those changes back to your working copy.

Similar to deploy, the `--dry-run` flag will display a list of file changes that
will occur during a download.

## Creating a Backup

You can backup your WordPress application with Sail:
Expand All @@ -268,6 +275,23 @@ Don't forget to backup your backups.

**TODO**: Restoring a backup

### Exporting and Importing the Database

Download a full database dump from production:

```
sail db export
```

This will write a compressed .sql.gz file to your .backups directory. Such files
can be imported back to production:

```
sail db import .backups/filename.sql.gz
```

Regular .sql files can be imported too.

## Accessing the Server and Application

You have **full root access** to every server you provision with Sail. There is
Expand Down Expand Up @@ -313,7 +337,7 @@ sail wp shell
Spawn an interactive MySQL shell:

```
sail mysql
sail db cli
```

Open your browser to your application's wp-login.php location:
Expand Down Expand Up @@ -369,13 +393,9 @@ a useful checklist to help you out.
1. Download a full backup from your current provider
1. Copy the application files and wp-content/uploads, but **not your wp-config.php** to your new Sail working copy
1. Merge the wp-config.php file by hand, database credentials should remain the ones provided by Sail, everything else is up to you
1. Copy the database .sql file to your working copy, and give it a random secure name, for example: db-fe12cj81rb191.sql
1. **Do not** call it database.sql, or backup.sql or anything else that can easily be guessed
1. Use `sail deploy --with-uploads` to push your application files, uploads, and database export file to production
1. Use `sail wp db import db-fe12cj81rb191.sql` to import your database to your production MySQL instance
1. Delete the database file from your working copy and `sail deploy` again
1. Import the database .sql file from your local computer with `sail db import path/to/database.sql`
1. Use `sail deploy --with-uploads` to push your application files and uploads to production
1. Add your domains and select a primary one with `sail domain add` and `sail domain make-primary`
1. Run `sail ssh` and make sure everything is looking good

If everything is looking good, you should point your domain to Sail as described
in the [Domains and DNS](#domains-and-dns) section. After DNS propagation is complete
Expand Down
2 changes: 1 addition & 1 deletion sail/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = 'sail'
__description__ = 'CLI tool to deploy and manage WordPress applications on DigitalOcean'
__version__ = '0.9.10'
__version__ = '0.9.11'
__author__ = 'Konstantin Kovshenin'
__author_email__ = '[email protected]'
__url__ = 'https://sailed.io'
Expand Down

0 comments on commit afc0f3a

Please sign in to comment.