My standard website starter template. Jekyll build hosted on S3/Cloudfront.
If you don't have Homebrew, Ruby, Bundler, Node.js or Gulp already – follow the starting from scratch instructions first.
git clone [email protected]:robbiemanson/site-starter.git
into a new directory, or download zipbundle install
to install Gemsbrew install imagemagick && brew install graphicsmagick
for Gulp-powered image resizingnpm install
to install NPM packagesYou can now start local development
examplesite.com
with URL of new siteSite Owner
http://stagingAssetURL.com
with staging asset URL (e.g. Cloudfront distribution URL)favicon.png
assets.
and staging.
subdomains (see one of the other examples e.g. mademountain.com)whatthedomainis.com
S3 bucket with website hosting enabled; follow settings of another functioning example e.g. mademountain.comwww.whatthedomainis.com
S3 bucket to function as a redirect to actual bucket just created above; see existing functioning example for settings e.g. mademountain.coms3_id
, s3_secret
and s3_bucket
details in both s3_website.yml
filess3_website.yml
files, then replace the Cloudfront URL in head.htmlOpen terminal and run:
$ bundle exec jekyll serve
This will compile the site and recompile as new HTML/file structure changes are made.
Open another terminal window and run:
$ gulp
This will open a new browser tab running Browsersync and auto-reload when any HTML, SCSS, JS or media changes.
production
and staging
folders at root levels3_website cfg apply
before pushing, if any changes are made to either config in s3_website.yml
asset_url
in _config.yml
is pointing to correct CloudFront URLbundle exec jekyll serve
> gulp deploy-prep
> QA, especially: /pattern-librarys3_website push --config-dir=config_staging --dry-run
to check changes before pushings3_website push --config-dir=config_staging
asset_url
in _config.yml
is pointing to correct CloudFront URLbundle exec jekyll serve
> gulp deploy-prep
> QA, especially: /pattern-librarys3_website push --config-dir=config_production --dry-run
to check changes before pushings3_website push --config-dir=config_production
Follow instructions at: http://jekyllrb.com/docs/drafts/
To resize and minify full sized photos (will take at least a few mins to run):
$ gulp photos
If haven't used Site Starter on your machine before
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
ruby-install -V
)brew install ruby-install
~/.rubies
, then restart terminal)ruby-install ruby 2.3.3
chruby
)brew install chruby
chruby 2.3.3
~/.bashrc
or ~/.zshrc
source /usr/local/opt/chruby/share/chruby/chruby.sh
~/.bashrc
or ~/.zshrc
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
gem install bundler -v '1.13.7'
sudo npm install [email protected] -g
Now follow instructions to configure a new site locally!