Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.54 KB

faq.md

File metadata and controls

50 lines (36 loc) · 1.54 KB

Frequently Asked Questions (FAQ)

How to deploy the site to GitHub Pages?

Install gulp-gh-pages:

> npm install gulp-gh-pages --save-dev

Edit gulpfile.js file:

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

How to deploy the site via SCP?

Install gulp-scp:

> npm install gulp-scp --save-dev

Edit gulpfile.js file:

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

How to securely store passwords and keys in my public repo?

If you're using a public Git repository for your site, you should never embed your passwords and keys as plain text into your source code. Travis CI allows you to store passwords securely by encrypting them with a public key. For more information visit: http://docs.travis-ci.com/user/encryption-keys/

If you don't have Ruby installed, you can use Node.js-based [travis-encrypt] (https://www.npmjs.org/package/travis-encrypt) utility to encrypt and save your passwords in .travis.yml file.