From ac93ed4d29dd85409fb4c0cd9c2af266e90777c1 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 19 Oct 2024 10:04:14 +0200 Subject: initial commit --- use-sylius-with-homestead-instructions.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 use-sylius-with-homestead-instructions.md (limited to 'use-sylius-with-homestead-instructions.md') diff --git a/use-sylius-with-homestead-instructions.md b/use-sylius-with-homestead-instructions.md new file mode 100644 index 0000000..d6aa0dd --- /dev/null +++ b/use-sylius-with-homestead-instructions.md @@ -0,0 +1,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 +``` -- cgit v1.2.3