Merge pull request #8021 from open-sausages/pulls/4/update-doc-with-reorganise-upgrader-command

Add reference to the reorganise command
This commit is contained in:
Maxime Rainville 2018-05-03 15:52:47 +12:00 committed by GitHub
commit 68cc9d0015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 2 deletions

View File

@ -114,6 +114,16 @@ cd ~/my-project-root
~/.composer/vendor/bin/upgrade-code upgrade ./app/src --write
```
### Switching to new `app/src` structure
The `reorganise` command can automatically rename the `mysite` and `code` folder for you. It will search your code and find any occurence of `mysite`. It won't replace those occurence with `app` however.
After installing, run the upgrader reorganise command:
```
cd ~/my-project-root
~/.composer/vendor/bin/upgrade-code reorganise --write
```
## Migrating files
Since the structure of `File` dataobjects has changed, a new task `MigrateFileTask`

View File

@ -135,10 +135,16 @@ Code which relies on raw SQL queries to these tables will need to be updated.
`SiteTreeFileExtension` is deprecated, and has it's functionality baked directly into `File` dataobject.
### New upgrader command
The SilverStripe upgrader tool can now be used to convert your `_ss_environment.php` file to an equivalent `.env` file when migrating a SilverStripe 3 project to SilverStripe 4.
### New upgrader commands
Two new commands have been added to the SilverStripe upgrader tool: `environment` and `reorganise`.
`environment` allows you to convert your `_ss_environment.php` file to an equivalent `.env` file when migrating a SilverStripe 3 project to SilverStripe 4.
`reorganise` renames your `mysite` and `mysite/code` folders to `app` and `app/src`. It also warns you of any occurence of `mysite` in your codebase.
```
cd ~/my-project-root
upgrade-code environment --write
upgrade-code reorganise --write
```