summaryrefslogtreecommitdiff
path: root/use-sylius-with-homestead-instructions.md
blob: d6aa0dd55a3ccb0f212a283ba4ac2b420e25c6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## Install Sylius

Although generally not advisable, you have to adjust your memory_limit in your php.ini to 2G.  
You can find out which file to edit with `php --info | grep php.ini`.  
After that you can install sylius with `composer create-project sylius/sylius-standard`.

## Install Homestead
Change to the sylius directory and run
```
composer require --dev laravel/homestead:dev-master
./vendor/bin/homestead make
```
edit the .env file and set the DATABASE_URL to  
`DATABSE_URL=mysql://homestead:secret@127.0.0.1/homestead`


copy the below contents to after.sh  
```
# set memory_limit to 2G for composer
sudo sed -i "s/memory_limit = .*/memory_limit = 2G/" "/etc/php/7.3/cli/php.ini"
sudo sed -i "s/memory_limit = .*/memory_limit = 2G/" "/etc/php/7.4/cli/php.ini"
```

then run
```
vagrant up
vagrant ssh
cd code
php bin/console sylius:install
yarn install && yarn build
```