kriasoft / static-site-starter

Static Website Starter Kit (static site generator) powered by Gulp, Jade, Bootstrap, LESS and BrowserSync. It can automatically deploy your website to GitHub Pages via Travis CI.
Apache License 2.0
135 stars 58 forks source link

Deploy to custom service #1

Closed jifeon closed 10 years ago

jifeon commented 10 years ago

What about deploy not to Amazon? It is really the great quest to register an Amazon account. I think deploy to gh-pages would be much easier. Also deploy to my own server through scp for example whould be useful too.

koistya commented 10 years ago

Yep, deploying to GitHub Pages is easy:

var gulp = require('gulp');
var deploy = require("gulp-gh-pages");

gulp.task('deploy', function () {
    gulp.src('build/**')
        .pipe(deploy(options));
});

And here is a deployment scenario via SCP:

var gulp = require('gulp');
var scp = require('gulp-scp');

gulp.task('deploy', function () {
    gulp.src('build/**')
        .pipe(scp({
            host: '255.255.255.255',
            user: 'username',
            port: 22,
            path: '~/dir'
        }));
});

This will go to the FAQ.

koistya commented 10 years ago

Just have added to the FAQ:

jifeon commented 10 years ago

Thank you