porter 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.textile CHANGED
@@ -7,19 +7,19 @@ h2. Overview
7
7
  * A mysqldump command is remotely issued (via Capistrano) to the remote server (production or staging environment), saving the result as a compressed (gz) file
8
8
  * The database backup file from the server is retrieved (via scp) and decompressed
9
9
  * The development database is dropped, recreated, and restored from the backup
10
- * Assets stored in shared/public are rysnc'd down to your local public directory (exclusions are accepted!)
10
+ * Assets stored in directories you define are rysnc'd down to your local application directory
11
11
  * Separate rake tasks are included for restoring the db and re-syncing the assets without re-dumping the remote db
12
12
 
13
13
  h2. Dependencies
14
14
 
15
15
  * Capistrano (and a config/deploy.rb file)
16
16
  * Rake
17
- * A Rails App
17
+ * A Rails app
18
18
  * rsync (locally and remotely)
19
19
 
20
20
  h2. Installation
21
21
 
22
- * Add config.gem 'porter' to your Gemfile
22
+ * Add gem 'porter' to your Gemfile
23
23
  * Run: bundle install
24
24
  * Run: rails g porter
25
25
  * Add require 'porter' to your config/deploy.rb
@@ -3,14 +3,14 @@
3
3
  production:
4
4
  user: deploy
5
5
  domain: <%= domain %>
6
- app_dir: /opt/apps/<%= app %>
7
- asset_dirs: system
6
+ app_dir: /opt/apps/<%= app %>/current
7
+ asset_dirs: public/system
8
8
  rsync_options: --verbose --progress --stats --recursive --times --compress --delete
9
9
 
10
10
  # staging:
11
11
  # user: deploy
12
12
  # domain: <%= domain %>
13
- # dir: /opt/apps/<%= app %>
14
- # asset_dirs: system
13
+ # dir: /opt/apps/<%= app %>/current
14
+ # asset_dirs: public/system
15
15
  # rsync_options: --verbose --progress --stats --recursive --times --compress --delete
16
16
 
@@ -1,3 +1,3 @@
1
1
  module Porter
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -65,7 +65,7 @@ namespace :porter do
65
65
 
66
66
  asset_dirs.each do |d|
67
67
  puts "Synchronizing assets in #{d}..."
68
- system "rsync #{rsync_options} #{user}@#{domain}:#{app_dir}/shared/#{d}/ #{d}"
68
+ system "rsync #{rsync_options} #{user}@#{domain}:#{app_dir}/#{d}/ #{d}"
69
69
  end
70
70
 
71
71
  puts "Asset synchronization complete"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: porter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kenny Johnston
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-10 00:00:00 -08:00
19
+ date: 2011-04-15 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies: []
22
22