Charles Reid dca6df0ad3 add gitignore 3 weeks ago
.gitignore add gitignore 3 weeks ago
README.md add deploy instructions 3 weeks ago

README.md

mindreid.com

Site contents for mindreid.com



source code

master branch

This is the master branch. It contains instructions and notes.

git

Create a www branch that's empty.

git checkout --orphan www

Update .gitignore to ignore zip files and node files:

*.zip
node_modules

get site

wget -O consulting_site.zip https://github.com/BlackrockDigital/startbootstrap-freelancer/archive/gh-pages.zip
unzip consulting_site.zip

Get rid of README

rm README.md

npm node, gulp

To use gulpfile:

  • Need to install npm and node
  • Need to install gulp

To install npm/node:

  • Use package manager

To install gulp:

npm install --save-dev gulp
npm install --global gulp-cli
npm install gulp-sass --save-dev
npm install gulp-header
npm install gulp-clean-css
npm install gulp-rename
npm install gulp-uglify
npm install gulp-install
npm install gulp-filter

This will result in a node_modules directory. This should not be committed - add to .gitignore.

commit changes

To commit changes to master branch:

git add -A .
git commit -a -m 'Update master branch'
git push origin master



www branch

Edit files/css/etc.

remake site contents

To remake site contents:

gulp

commit changes

To commit:

git add -A .
git commit -a -m 'Update site'
git push origin www



deployment

ssh to the deploy machine

initial setup

Assuming your nginx points to /www/mindreid.com/htdocs/:

cd /www/mindreid.com/

git clone -b www https://charlesreid1.com:3000/charlesreid1/mindreid-com.git htdocs

update

cd /www/mindreid.com/htdocs/
git pull

That's it!