railslove_deploy 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,12 +2,12 @@ namespace :thinking_sphinx do
|
|
2
2
|
|
3
3
|
desc "Configure Thinkig Sphinx"
|
4
4
|
task :config, :roles => :app do
|
5
|
-
run "cd #{
|
5
|
+
run "cd #{release_path}; rake ts:config RAILS_ENV=#{fetch(:rails_env, "production")}"
|
6
6
|
end
|
7
7
|
|
8
8
|
desc "Start Thinkig Sphinx"
|
9
9
|
task :start, :roles => :app do
|
10
|
-
run "cd #{
|
10
|
+
run "cd #{release_path}; rake ts:start RAILS_ENV=#{fetch(:rails_env, "production")}"
|
11
11
|
end
|
12
12
|
|
13
13
|
desc "Stop Thinkig Sphinx"
|
@@ -17,15 +17,15 @@ namespace :thinking_sphinx do
|
|
17
17
|
|
18
18
|
desc "Run Thinkig Sphinx indexing"
|
19
19
|
task :index, :roles => :app do
|
20
|
-
run "cd #{
|
20
|
+
run "cd #{release_path}; rake ts:index RAILS_ENV=#{fetch(:rails_env, "production")}"
|
21
21
|
end
|
22
22
|
|
23
23
|
desc "Bootstrap Thinkig Sphinx"
|
24
24
|
task :bootstrap, :roles => :app do
|
25
|
-
run "cd #{
|
26
|
-
run "cd #{
|
27
|
-
run "cd #{
|
28
|
-
run "cd #{
|
25
|
+
run "cd #{release_path}; rake ts:stop RAILS_ENV=#{fetch(:rails_env, "production")}"
|
26
|
+
run "cd #{release_path}; rake ts:config RAILS_ENV=#{fetch(:rails_env, "production")}"
|
27
|
+
run "cd #{release_path}; rake ts:index RAILS_ENV=#{fetch(:rails_env, "production")}"
|
28
|
+
run "cd #{release_path}; rake ts:start RAILS_ENV=#{fetch(:rails_env, "production")}"
|
29
29
|
end
|
30
30
|
|
31
31
|
desc "Symlink Sphinx index DB"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
package :essentials do
|
2
2
|
description 'Essential Tools'
|
3
|
-
apt %w{sudo wget make unzip curl libcurl3 libcurl3-dev libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev libgcrypt11-dev openssl libssl-dev gcc g++ gettext libreadline-dev logrotate ssl-cert flex} do
|
3
|
+
apt %w{sudo wget make unzip curl libcurl3 libcurl3-dev libpcre3 libpcre3-dev libpcrecpp0 libssl-dev libxml2-dev libxml2 libxslt-dev zlib1g-dev libgcrypt11-dev openssl libssl-dev gcc g++ gettext libreadline-dev logrotate ssl-cert flex} do
|
4
4
|
pre :install, 'apt-get update'
|
5
5
|
end
|
6
6
|
|
@@ -6,9 +6,9 @@
|
|
6
6
|
DocumentRoot /var/www/rails_apps/<%= application %>/current/public
|
7
7
|
|
8
8
|
<directory "/var/www/rails_apps/<%= application %>/current/public">
|
9
|
-
|
10
|
-
Options -MultiViews
|
11
|
-
|
9
|
+
AllowOverride all
|
10
|
+
Options -MultiViews
|
11
|
+
Options FollowSymLinks
|
12
12
|
</directory>
|
13
13
|
RailsEnv <%= fetch(:rails_env, "production") %>
|
14
14
|
LogLevel warn
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railslove_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bumann
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-03-03 00:00:00 +01:00
|
13
13
|
default_executable: deployify
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|