https://github.com/cpriego/valet-linux
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.
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".
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
.