Answer the question
In order to leave comments, you need to log in
How to run vue cli locally on ubuntu via link?
There is a vue cli project. Through npm run serve, it starts, but it’s reluctant to write and restart it every time, you need to follow a link like mysite. I'm setting up a virtual host. I added it to the hosts file, in the /etc/apache2/sites-avialable folder I created such a virtual host, activated sudo a2ensite mysite. Backend on Laravel, then you also need to somehow connect it.
<VirtualHost *:80>
ServerName mysite
ServerAdmin [email protected]
DocumentRoot /var/www/mysite
<Directory "/var/www/mysite">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question