Skip to content

Instantly share code, notes, and snippets.

@leoj3n
Last active August 29, 2015 14:14
Show Gist options
  • Save leoj3n/1032940c7fcc78c0e290 to your computer and use it in GitHub Desktop.
Save leoj3n/1032940c7fcc78c0e290 to your computer and use it in GitHub Desktop.
Setup Tutorial ★ Static Showdown 2015

Setup Tutorial ★ Static Showdown 2015

Notes:

  • Replace TEAM with your team's name
  • Judges will be using STABLE browsers to judge Prod
  • You will not find your app in Divshot Dashboard, only when using divshot-cli

Install Divshot-CLI

npm install -g divshot-cli

Find your app name

divshot apps

  Your apps


  ss15 apps

  ss15-TEAM # Your team app name

Make local directory

mkdir -p ss15-TEAM && cd $_

Create divshot.json and initial HTML files

divshot init

name: (ss15-TEAM)
root directory: (current) public # Best practice
clean urls: (y/n) y # No .html extensions
error page: (error.html)
Would you like to create a Divshot.io app from this app?: (y/n) n # Select NO
Success: App initiated

Ignore .divshot-cache

echo '.divshot-cache' > .gitignore

Push to GitHub

git init
git add --all
git commit -m ':sailboat:'
git remote add origin https://github.com/staticshowdown/ss15-TEAM.git
git push -u origin master

Push to Divshot Prod (for judging)

divshot push

View your app

http://ss15-TEAM.divshot.io

Push to Divshot Dev

divshot push development

View your development app over HTTP

http://development.ss15-TEAM.divshot.io

HTTPS

https://development--ss15-TEAM.divshot.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment