Cyanotype

Cyanotype

Sample gruntfile.js

Just wanted to share a small piece of the gruntfile I’ve been using for some time now. I recently made the switch from an AWS hosted instance to a Digital Ocean droplet. Not only do I now know exactly what my monthly charge is ($5) but I am now able to get any droplet and running with everything I need (node, apache etc) in under 2 minutes. Yes, 2 minutes. ‘sftp-deploy’ has been instrumental in my development toolkit.

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    uglify: {
      options: {
        banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
      },
      build: {
        src: 'src/<%= pkg.name %>.js',
        dest: 'build/<%= pkg.name %>.min.js'
      }
    },    
	'sftp-deploy': {
	  deployWWW: {
		auth: {
		  host: '*****',
		  port: 22,
		  authKey: 'key1'
		},
		cache: 'sftpCache.json',
		src: './www/',
		dest: '/var/www/html',
		serverSep: '/',
		concurrency: 4,
		progress: true
		},
		deployNode: {
			auth: {
			  host: '*****',
			  port: 22,
			  authKey: 'key1'
			},
			cache: 'sftpCache2.json',
			src: './nodejs/',
			dest: '/peterbschrader/',
			serverSep: '/',
			concurrency: 4,
			progress: true
		}
	  }
  });

  // Load the plugin that provides the "uglify" task.
  //grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-sftp-deploy');

  // Default task(s).
  grunt.registerTask('default', ['sftp-deploy']);

};
Sebago Summer

Sebago Summer

Tokyo - Day 1

Tokyo - Day 1

Tokyo - Day 1

Tokyo - Day 1

Yup.

Yup.

Graduates (Taken with instagram)

Graduates (Taken with instagram)

Taken with instagram

Taken with instagram

Indian style computing  (Taken with instagram)

Indian style computing (Taken with instagram)

Rain man (Taken with instagram)

Rain man (Taken with instagram)

Taken with instagram

Taken with instagram