Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: cameronyule/
base: e839219c5f
head fork: cameronyule/
compare: 6488241776
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 11 additions and 4 deletions.
  1. +11 −4 config/deploy.rb
15 config/deploy.rb
@@ -3,14 +3,16 @@
set :scm, :none
set :deploy_via, :copy
set :copy_compression, :gzip
-set :use_sudo, false
+set :use_sudo, true
+default_run_options[:pty] = true
server application, :web, :app
-set :user, "root"
-set :deploy_to, "/var/www/#{application}.com"
+set :user, "admin"
+set :deploy_to, "/var/www/#{application}"
before 'deploy:update', 'deploy:update_jekyll'
+after 'deploy:update', 'deploy:set_permissions'
namespace :deploy do
@@ -21,7 +23,12 @@
desc 'Run jekyll to update site before uploading'
task :update_jekyll do
- %x(rm -rf _site/* && jekyll)
+ %x(rm -rf _site/* && jekyll --no-auto)
+ end
+ desc 'Set file permissions for Apache user'
+ task :set_permissions do
+ run "#{sudo} chgrp -R www-data #{deploy_to}"

No commit comments for this range

Something went wrong with that request. Please try again.