Simple way to deploy a Jekyll site on Surge.sh
Clone or downlad this repo to get started. Don't forget to remove my Google Analytics tracking code from _includes/head.html
.
Create an .env
, and add your own settings.
DOMAIN=coolsite.surge.sh
Make sure you have Jekyll and NodeJS installed on your computer.
npm install
Surge is very simple to get started with. Read more
npm install --g surge
Want to notify your Slack Team? 👫. Just add an Incoming WebHook to the channel you want to notify.
Add this to your .env
SLACKURL=https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXX
SLACKTEXT='Deployed http://mycoolsite.surge.sh!'
SLACKCHANNEL='#general'
SLACKUSERNAME='Deployment'
SLACKICONEMOJI=':taco:'
jekyll serve
Open up your browser on http://127.0.0.1:4000/
gulp deploy
Your site now lives at your domain and your Slack-team has been notified!
Cool, Surge supports this out of the box.
MIT © Urban Sandén