Skip to content

Instantly share code, notes, and snippets.

@tangar76
Last active February 5, 2020 20:36
Show Gist options
  • Save tangar76/a3c75e1d4b135c09196bf0aac57e8d12 to your computer and use it in GitHub Desktop.
Save tangar76/a3c75e1d4b135c09196bf0aac57e8d12 to your computer and use it in GitHub Desktop.
Valet deployment

Valet

https://github.com/cpriego/valet-linux

Valet not found

Add to your ~/.profile file follow code:

if [ -d "$HOME/.config/composer/vendor/bin" ] ; then
    PATH="$HOME/.config/composer/vendor/bin:$PATH"
fi

You may need to restart Ubuntu after this.

MySQL

https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04

Pay attention to Step 3 and "authentication method from auth_socket to mysql_native_password".

Nginx

Create file /etc/nginx/sites-available/magento.conf with content:

upstream fastcgi_backend {
    server  unix:/home/<user>/.valet/valet.sock;
}

server {
    listen 80;
    server_name argento-m2.test;
    set $MAGE_ROOT /home/<user>/<path-to-magento-dir>;
    include /home/<user>/<path-to-magento-dir>/nginx.conf.sample;
}

Make symlink sudo ln -s /etc/nginx/sites-available/magento.conf /etc/nginx/sites-enabled/magento.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment