misc clean-ups

This commit is contained in:
Tom Vaughan 2012-09-04 10:30:52 -07:00
parent 8694bb8fb2
commit a832143c87
2 changed files with 7 additions and 7 deletions

View file

@ -21,7 +21,7 @@ If deploying through `rsync`, be sure it is installed.
Edit `Gemfile`, and add: Edit `Gemfile`, and add:
gem "middleman-deploy" gem "middleman-deploy", "~>0.0.1"
Then run: Then run:
@ -35,9 +35,9 @@ Edit `config.rb`, and add:
activate :deploy do |deploy| activate :deploy do |deploy|
deploy.method = :rsync deploy.method = :rsync
deploy.user = "tvaughan" deploy.user = "tvaughan"
deploy.host = "www.example.com" deploy.host = "www.example.com"
deploy.path = "/srv/www/site" deploy.path = "/srv/www/site"
end end
Adjust these values accordingly. Adjust these values accordingly.
@ -56,7 +56,7 @@ To remove orphaned files or directories on the remote host, add:
Default is `false`. Default is `false`.
### Step 4b - Github Pages setup ### Step 4b - GitHub Pages setup
Edit `config.rb`, and add: Edit `config.rb`, and add:
@ -69,7 +69,7 @@ github set up as `origin` and a working `gh-pages` branch already in place.
### Step 5 ### Step 5
middleman build middleman build [--clean]
middleman deploy middleman deploy
### NOTES ### NOTES

View file

@ -99,7 +99,7 @@ EOF
end end
def deploy_git def deploy_git
puts "## Deploying to Github Pages" puts "## Deploying to GitHub Pages"
Dir.mktmpdir do |tmp| Dir.mktmpdir do |tmp|
# clone ./ with branch gh-pages to tmp # clone ./ with branch gh-pages to tmp
repo = Git.clone(ENV['MM_ROOT'], tmp) repo = Git.clone(ENV['MM_ROOT'], tmp)