openminds_deploy 0.0.9 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +23 -9
- data/lib/openminds_deploy/passenger.rb +1 -1
- data/lib/openminds_deploy/version.rb +1 -1
- metadata +6 -6
data/README.rdoc
CHANGED
@@ -22,10 +22,10 @@ The block around it is a convenience rescue if someone would deploy with this Ca
|
|
22
22
|
|
23
23
|
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
|
24
24
|
|
25
|
-
set :user,
|
26
|
-
set :application,
|
25
|
+
set :user, 'account_name'
|
26
|
+
set :application, 'my_application'
|
27
27
|
|
28
|
-
set :repository,
|
28
|
+
set :repository, 'git@server.openminds.be:git/my_application.git'
|
29
29
|
|
30
30
|
server 'server.openminds.be', :app, :web, :db, :primary => true
|
31
31
|
|
@@ -34,12 +34,13 @@ The block around it is a convenience rescue if someone would deploy with this Ca
|
|
34
34
|
require 'openminds_deploy/git'
|
35
35
|
require 'openminds_deploy/passenger'
|
36
36
|
require 'openminds_deploy/rails3'
|
37
|
-
rescue LoadError
|
37
|
+
rescue LoadError => e
|
38
38
|
$stderr.puts <<INSTALL
|
39
|
-
|
40
|
-
|
39
|
+
There was an exception while trying to deploy your application. Most likely you do not have the openminds_deploy gem installed.
|
40
|
+
You can install the gem like this:
|
41
41
|
gem install openminds_deploy
|
42
42
|
INSTALL
|
43
|
+
$stderr.puts "Exception thrown: #{e}"
|
43
44
|
exit 1
|
44
45
|
end
|
45
46
|
|
@@ -54,6 +55,19 @@ If you want to override some settings from the openminds_deploy recipes, define
|
|
54
55
|
|
55
56
|
set :deploy_to, "/home/#{user}/apps/staging/#{application}"
|
56
57
|
|
58
|
+
If you deploy a Rails 3.1 application with the default settings, you need to precompile
|
59
|
+
the assets upon deployment. A recipe for a simple case is to append these lines
|
60
|
+
to the Capfile.
|
61
|
+
|
62
|
+
before "deploy:symlink", "deploy:assets"
|
63
|
+
|
64
|
+
namespace :deploy do
|
65
|
+
desc "Compile assets"
|
66
|
+
task :assets do
|
67
|
+
run "cd #{release_path}; RAILS_ENV=production bundle exec rake assets:precompile"
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
57
71
|
== Recipes in detail
|
58
72
|
=== openminds_deploy/defaults
|
59
73
|
This sets up variables like use_sudo and group_writable, enables SSH forwarding, and adds a task to link config/database.yml.
|
@@ -62,13 +76,13 @@ This sets up variables like use_sudo and group_writable, enables SSH forwarding,
|
|
62
76
|
This sets up the SCM and enables git-submodules to be installed.
|
63
77
|
|
64
78
|
=== openminds_deploy/svn
|
65
|
-
This sets up the SCM
|
79
|
+
This sets up the SCM for svn and adds a password-prompt (don't keep your password in your SCM!).
|
66
80
|
|
67
81
|
=== openminds_deploy/passenger
|
68
|
-
This sets up all stop/start/restart tasks for Passenger
|
82
|
+
This sets up all stop/start/restart tasks for Passenger.
|
69
83
|
|
70
84
|
=== openminds_deploy/lighttpd
|
71
|
-
This sets up all stop/start/restart tasks for Lighttpd
|
85
|
+
This sets up all stop/start/restart tasks for Lighttpd.
|
72
86
|
|
73
87
|
=== openminds_deploy/rails3
|
74
88
|
This sets up bundling tasks with Bundler and does a basic check to see if the server you're on supports Rails 3.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openminds_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.0.9
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jan De Poorter
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2011-
|
21
|
+
date: 2011-09-19 00:00:00 +02:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
@@ -56,7 +56,7 @@ files:
|
|
56
56
|
- lib/openminds_deploy.rb
|
57
57
|
- README.rdoc
|
58
58
|
has_rdoc: true
|
59
|
-
homepage: http://openminds.be
|
59
|
+
homepage: http://www.openminds.be
|
60
60
|
licenses: []
|
61
61
|
|
62
62
|
post_install_message:
|