Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.97 KB

File metadata and controls

53 lines (32 loc) · 1.97 KB

Set up Environment for OroPlatform Based Application on Mac OS X

This guide demonstrates how to set up :ref:`Docker and Symfony Server development stack <setup-dev-env-docker-symfony>` for Oro applications on Mac OS X.

Environment Setup

  1. Install Homebrew package manager to manage all the required software from CLI:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  2. Install Docker and start the Docker deamon:

    brew install --cask docker
    open /Applications/Docker.app
  3. Install PHP 7.4, Composer, Node.js 12 and Docker Compose:

    brew install php@7.4 composer node@12 docker-compose
    composer self-update --1
    echo 'export PATH="/usr/local/opt/php@7.4/bin:$PATH" \nexport PATH="/usr/local/opt/php@7.4/sbin:$PATH" \nexport PATH="/usr/local/opt/node@12/bin:$PATH"' >> ~/.bash_profile
  4. Configure PHP:

    echo "memory_limit = 2048M \nmax_input_time = 600 \nmax_execution_time = 600 \nrealpath_cache_size=4096K \nrealpath_cache_ttl=600 \nopcache.enable=1 \nopcache.enable_cli=0 \nopcache.memory_consumption=512 \nopcache.interned_strings_buffer=32 \nopcache.max_accelerated_files=32531 \nopcache.save_comments=1" >> /usr/local/etc/php/7.4/php.ini
  5. Install Symfony Server and enable TLS:

    curl -sS https://get.symfony.com/cli/installer | bash
    echo 'export PATH="$HOME/.symfony/bin:$PATH"' >> ~/.bash_profile
    source ~/.bash_profile
    symfony local:server:ca:install
  6. Restart the terminal and web browser to get them ready.

What's Next