Groovey - pokoot/Notes GitHub Wiki

Nginx

$ sudo vim /etc/nginx/sites-enabled/groovey.dev
server {
    listen   80;

    root /usr/share/nginx/html/Groovey/public;
    index index.php index.html index.php;

    server_name groovey.dev;

    location / {
            try_files $uri $uri/ /index.php;
            #autoindex on;
    }

    error_page 404 /404.html;

    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
          root /usr/share/nginx/html;
    }

    location ~ \.php$ {
            try_files $uri =404;
            fastcgi_pass unix:/var/run/php5-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;

    }

}

Initial Setup

$ composer update
$ sudo npm install --no-bin-links
$ bower install

rm -Rf /usr/share/nginx/html/Groovey/vendor/groovey/framework
ln -s /usr/share/nginx/html/Groovey-Framework framework

rm -Rf /usr/share/nginx/html/Groovey/public/packages/groovey    
ln -s /usr/share/nginx/html/Groovey-Assets groovey

Setup .env file

$ touch .env
$ sudo vim .env

ENVIRONMENT=LOCALHOST

Chrome Dev Tools + Sass Sourcemap

// Enable Sourcemaps
F12 -> Settings > (Check) Enable CSS source maps

// Add workspace
F12 > Workspace > Root folder of Groovey.
E:\BOX\Sandbox\www\Groovey

// Map sass soucemap to resource sass file.
F12 > Sources > source folder > theme.scss 

Map to:
E:/BOX/Sandbox/www/Groovey/resources/sass/theme.scss