Put this script in your bin directory. It's highly recommended to have bin directory in your home directory.
First (url) argument is mandatory
oroinstall http://dev-platform.localSecond argument can be a envirorment (prod by default)
oroinstall http://dev-platform.local test| Line | What it do |
|---|---|
| 3 | Get URL as first argument. Application URL should be provided to correct install |
| 4-5 | Get envirorment as second argument. By default it's prod |
| 6 | Install composer dependencies |
| 7 | SECONDS env variable seted to null for mesure the time of install execution |
| 8 | Remove old production cache and Temp directory from last failed behat execution |
| 10-14 | Get parameters from parameters.yml of your current application |
| 16-22 | Remove and create database |
| 28 | Set installed flag in parameters.yml to null |
| 30-34 | Install application |
| 36-37 | Mesure and echo time execution |