Thursday, October 6, 2016

Web Project Startup

Add yourself to the www-data group and set the setgid bit on the /var/www directory such that all newly created files inherit this group as well.

sudo gpasswd -a "$USER" www-data

Correct previously created files (assuming you to be the only user of /var/www):

sudo chown -R "$USER":www-data /var/www
find /var/www -type f -exec chmod 0660 {} \;
sudo find /var/www -type d -exec chmod 2770 {} \;

Copy contents of utility-pro-dev into a new directory in /var/www/html/.

Go to the new directory and run git init to create a git repository
Run npm install
Run bower install
Run grunt

Saturday, October 1, 2016