|
1 | | -# Painless Magento 2 |
| 1 | +# Painless Magento 2 & 1 |
2 | 2 |
|
3 | 3 | [](https://opensource.org/licenses/Apache-2.0) |
4 | 4 |
|
5 | | -A dockerized magento 2 community environment ready for development or production. |
| 5 | +A dockerized magento 2 community environment ready for development or production. It supports magento 1.9.x for development |
6 | 6 |
|
7 | 7 | Inspired from [dockerize-magento2](https://github.com/arvatoSCM/dockerize-magento2) |
8 | 8 |
|
@@ -79,27 +79,27 @@ To start, use `.env.sample` to create this file. |
79 | 79 | cp .evn.sample .env |
80 | 80 | ``` |
81 | 81 |
|
82 | | -Open the file and fill each variable. Each variable has values by default, you can use them as it for development but please change all for your installation in production. |
| 82 | +Open the file and fill each variable. Each variable has values by default, you can use them as it for development but please for your own safety change all for your installation in production. |
83 | 83 |
|
84 | | -- ### Old Magento 2 projects: |
| 84 | +- ### Old Magento projects: |
85 | 85 |
|
86 | 86 | - take a backup from your data base. |
87 | | - - Add your existing Magento 2 code inide the `src` directory. |
88 | | - - In the root directory of this project run the installer. |
| 87 | + - Add your existing Magento 2 code inside the `src` directory. |
| 88 | + - **Magento 2 only**: In the root directory of this project run the installer. |
89 | 89 |
|
90 | 90 | ```bash |
91 | 91 | sh bin/console.sh install |
92 | 92 | ``` |
93 | 93 |
|
94 | | - - When the instalation is done, connect with the phpadmin you just install and use your data base backup for apply your last version. |
| 94 | + - Connect with the phpadmin you just install and use your data base backup for apply your last version. Just use the port you set on `.env` file. |
95 | 95 |
|
96 | 96 | - If you prefer, you can use [docker-compose exec](https://docs.docker.com/compose/reference/exec/) comand in the mariadb container and apply your backup using mysql, you should add your backup in the directory `config/backups` it will appears inside container at the address `/backups` |
97 | 97 |
|
98 | 98 | ```bash |
99 | | - docker-compose exec mariadb sh -c="mysql -u $DATABASE_USER -p $DATABASE_NAME < /backups/$BACKUP_FILE_NAME" |
| 99 | + docker-compose exec mysql sh -c="mysql -u $DATABASE_USER -p $DATABASE_NAME < /backups/$BACKUP_FILE_NAME" |
100 | 100 | ``` |
101 | 101 |
|
102 | | - - Done, you can start to use or develop your old magento 2 project. |
| 102 | + - Done, you can start to use or develop your old magento project. |
103 | 103 |
|
104 | 104 | - ### Magento 2 from scratch |
105 | 105 |
|
|
0 commit comments