mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
68cc9d0015
@ -114,6 +114,16 @@ cd ~/my-project-root
|
|||||||
~/.composer/vendor/bin/upgrade-code upgrade ./app/src --write
|
~/.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
|
## Migrating files
|
||||||
|
|
||||||
Since the structure of `File` dataobjects has changed, a new task `MigrateFileTask`
|
Since the structure of `File` dataobjects has changed, a new task `MigrateFileTask`
|
||||||
|
@ -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.
|
`SiteTreeFileExtension` is deprecated, and has it's functionality baked directly into `File` dataobject.
|
||||||
|
|
||||||
### New upgrader command
|
### New upgrader commands
|
||||||
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.
|
|
||||||
|
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
|
cd ~/my-project-root
|
||||||
upgrade-code environment --write
|
upgrade-code environment --write
|
||||||
|
upgrade-code reorganise --write
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user