sudo usermod -aG www-data $USER
sudo chown -R www-data:www-data /var/www/html/project-name/
const mix = require("laravel-mix"); | |
/* | |
|-------------------------------------------------------------------------- | |
| Mix Asset Management | |
|-------------------------------------------------------------------------- | |
| | |
| Mix provides a clean, fluent API for defining some Webpack build steps | |
| for your Laravel applications. By default, we are compiling the CSS | |
| file for the application as well as bundling up all the JS files. |
{ | |
... | |
"repositories": [ | |
{ | |
"type": "path", | |
"url": "packages/vendor/package/", | |
"symlink": "true" | |
} | |
], | |
"license": "MIT", |
<?php | |
/** Sets up 'direct' method for wordpress, auto update without ftp */ | |
define('FS_METHOD','direct'); |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Support\Facades\Schema; | |
class AppServiceProvider extends ServiceProvider | |
{ |
alias html='cd /var/www/html && clear' | |
alias downloads='cd ~/Downloads && clear' | |
alias c='clear' | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias speed='speedtest' | |
alias chrome="google-chrome $1" |
RewriteEngine On | |
RewriteRule ^(.*)$ public/$1 [L] |
127.0.0.1 localhost | |
127.0.1.1 ASUS-X550LD | |
127.0.1.2 laravel-app | |
# The following lines are desirable for IPv6 capable hosts | |
::1 ip6-localhost ip6-loopback | |
fe00::0 ip6-localnet | |
ff00::0 ip6-mcastprefix | |
ff02::1 ip6-allnodes |
<VirtualHost 127.0.1.2:80> | |
ServerName laravel-app | |
DocumentRoot /var/www/html/laravel-app | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
<Directory /var/www/html/laravel-app> | |
Options All | |
AllowOverride All |
# Add the current user to www-data group | |
sudo usermod -a -G www-data $USER | |
# Change the group of web server directory to www-data | |
sudo chgrp -R www-data /var/www/html | |
# Give write permission to the www-data group | |
sudo chmod -R g+w /var/www/html | |