This repository has been archived by the owner on Nov 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30fc113
commit ca2af36
Showing
8 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,11 @@ Check the webpage on "heroku":http://middleman-template.heroku.com/. | |
|
||
A workflow might look like this: | ||
* <code>show-it</code> and edit your <code>source/</code> files (this runs a live reload server) | ||
* <code>built-it</code> when you are happy with your changes (this will build the static html and commit it to your heroku dev site) | ||
* <code>test-it</code> when you are happy with your changes (this will build the static html and commit it to your heroku dev site) | ||
* <code>publish-it</code> when you are happy with the way it looks on the dev site (this does a git merge and pushes the master to the main heroku site) | ||
|
||
Setup happens by: | ||
* <code>git clone [email protected]:adamgreenhall/middleman-heroku-template.git</code> | ||
* <code>cd middleman-heroku-template</code> | ||
* <code>bundle install</code> | ||
* <code>heroku create your-optional-app-name-here</code> | ||
* <code>heroku create your-optional-app-name-here-dev --remote dev </code> | ||
* <code>git config push.default tracking</code> | ||
* <code>git checkout -b staging --track staging/master</code> | ||
* <code>install-it</code> | ||
* you can follow heroku's "instructions":http://devcenter.heroku.com/articles/custom-domains for using custom domains |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env ruby | ||
system('bundle install') | ||
puts 'What is your heroku app name (optional)?' | ||
name = gets.strip | ||
system("heroku create #{name}") | ||
if name!="" | ||
system("heroku create #{name}-dev --remote dev") | ||
else | ||
system("heroku create --remote dev") | ||
end | ||
system("git config push.default tracking") | ||
system("git checkout -b dev") | ||
system("git push dev dev:master") | ||
system("git branch --set-upstream dev dev/master") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
system('git checkout master') | ||
system('git merge dev') | ||
system('git push') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env ruby | ||
system('git checkout dev') | ||
system('middleman server --livereload') | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
!!! | ||
%html{:lang=>"en"} | ||
%head | ||
%title #{@title||""} | ||
%title #{(@title||data.page.title)||""} | ||
%link{:rel=>'stylesheet', :href=>'/stylesheets/site.css', :type => "text/css"} | ||
|
||
%body | ||
= yield | ||
/ %script{:type => "text/javascript", :src=>'/javascripts/d3.js'} | ||
#{google_analytics('UA-26495302-1')} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env ruby | ||
puts 'What did you change?' | ||
msg = gets | ||
system('middleman build') | ||
system('git add build/*') | ||
system("git commit -am '#{msg}'") | ||
system("git push") |