capifony 2.1.5 → 2.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +4 -0
  2. data/README.md +9 -9
  3. data/lib/symfony1.rb +3 -3
  4. data/lib/symfony2.rb +3 -3
  5. metadata +3 -3
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 2.1.6 / April 12, 2012
2
+
3
+ * bugfixes
4
+
1
5
  == 2.1.3 / September 27, 2011
2
6
 
3
7
  * propel support for Symfony2 (by @willdurand)
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  Deploying symfony Applications with Capistrano
2
2
  ==============================================
3
3
 
4
- Capistrano is an open source tool for running scripts on multiple servers. It’s primary use is for easily deploying applications. While it was built specifically for deploying Rails apps, it’s pretty simple to customize it to deploy other types of applications. We’ve been working on creating a deployment “recipe” to work with symfony applications to make our job a lot easier.
4
+ Capistrano is an open source tool for running scripts on multiple servers. Its primary use is for easily deploying applications. While it was built specifically for deploying Rails apps, it’s pretty simple to customize it to deploy other types of applications. We’ve been working on creating a deployment “recipe” to work with symfony applications to make our job a lot easier.
5
5
 
6
6
  ## Prerequisites ##
7
7
 
8
8
  - Symfony 1.4+ OR Symfony2
9
9
  - Must have SSH access to the server you are deploying to.
10
- - Must have Ruby and RubyGems installed on your machine (not required for deployment server)
10
+ - Must have Ruby and RubyGems installed on your machine (not required for deployment server)
11
11
 
12
12
  ## Installing Capifony ##
13
13
 
@@ -28,18 +28,18 @@ CD to your project directory & run:
28
28
 
29
29
  capifony .
30
30
 
31
- This will create `Capfile` in your project root & `deploy.rb` config file in `config` (for symfony)
32
- and `app/config` (for Symfony2) directory
31
+ This will create a `Capfile` in your project root & a `deploy.rb` config file in your `config` (for symfony)
32
+ or `app/config` (for Symfony2) directory.
33
33
 
34
- Fill up your `config/deploy.rb` with your server connection data
34
+ Fill up your `config/deploy.rb` with your server connection data.
35
35
 
36
36
  ## Server Setup ##
37
37
 
38
- Now, you can start the deployment process! To get your server setup with the file structure that Capistrano expects, you can run:
38
+ Now, you can start the deployment process! To get your server setup with the directory structure that Capistrano expects, CD to your local project directory and run:
39
39
 
40
40
  cap deploy:setup
41
41
 
42
- This command will create the following folder structure on your server:
42
+ Running this command locally will create the following directory structure on your server:
43
43
 
44
44
  `-- /var/www/demo.everzet.com
45
45
  |-- current → /var/www/demo.everzet.com/releases/20100512131539
@@ -56,12 +56,12 @@ This command will create the following folder structure on your server:
56
56
 
57
57
  The folders in the releases directory will be the actual deployed code, timestamped. Capistrano symlinks your log & web/uploads directories from your app to the directories in the shared folder so that it doesn’t get erased when you deploy a new version of your code.
58
58
 
59
+ ## Deployment ##
60
+
59
61
  To deploy your application, simply run:
60
62
 
61
63
  cap deploy
62
64
 
63
- ## Deployment ##
64
-
65
65
  To specify the username/password to use over SSH, add the following configuration to your `config/deploy.rb` file:
66
66
 
67
67
  set :user, 'username'
@@ -456,7 +456,7 @@ namespace :database do
456
456
  end
457
457
  end
458
458
 
459
- require "FileUtils"
459
+ require "fileutils"
460
460
  FileUtils.mkdir_p("backups")
461
461
  get file, "backups/#{filename}"
462
462
  begin
@@ -475,7 +475,7 @@ namespace :database do
475
475
  config = load_database_config IO.read('config/databases.yml'), symfony_env_local
476
476
  sqlfile = "#{application}_dump.sql"
477
477
 
478
- require "FileUtils"
478
+ require "fileutils"
479
479
  FileUtils::mkdir_p("backups")
480
480
  case config['type']
481
481
  when 'mysql'
@@ -510,7 +510,7 @@ namespace :database do
510
510
 
511
511
  database.dump.remote
512
512
 
513
- require "FileUtils"
513
+ require "fileutils"
514
514
  f = File.new("backups/#{sqlfile}", "a+")
515
515
  require "zlib"
516
516
  gz = Zlib::GzipReader.new(File.open("backups/#{filename}", "r"))
@@ -79,7 +79,7 @@ namespace :database do
79
79
  end
80
80
  end
81
81
 
82
- require "FileUtils"
82
+ require "fileutils"
83
83
  FileUtils.mkdir_p("backups")
84
84
  get file, "backups/#{filename}"
85
85
  begin
@@ -98,7 +98,7 @@ namespace :database do
98
98
  config = load_database_config IO.read('app/config/parameters.yml'), symfony_env_local
99
99
  sqlfile = "#{application}_dump.sql"
100
100
 
101
- require "FileUtils"
101
+ require "fileutils"
102
102
  FileUtils::mkdir_p("backups")
103
103
  case config['database_driver']
104
104
  when 'pdo_mysql'
@@ -133,7 +133,7 @@ namespace :database do
133
133
 
134
134
  database.dump.remote
135
135
 
136
- require "FileUtils"
136
+ require "fileutils"
137
137
  f = File.new("backups/#{sqlfile}", "a+")
138
138
  require "zlib"
139
139
  gz = Zlib::GzipReader.new(File.open("backups/#{filename}", "r"))
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 1
8
- - 5
9
- version: 2.1.5
8
+ - 6
9
+ version: 2.1.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Konstantin Kudryashov
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-03-29 00:00:00 +02:00
17
+ date: 2012-04-12 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency