inline_forms 1.3.39 → 1.3.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/inline_forms +12 -0
- data/lib/generators/templates/deploy.rb +13 -6
- data/lib/inline_forms/version.rb +1 -1
- metadata +2 -2
data/bin/inline_forms
CHANGED
@@ -211,6 +211,18 @@ precomp = "
|
|
211
211
|
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
212
212
|
#{app_name}::Application.configure do
|
213
213
|
config.assets.precompile += %w( inline_forms_application.js inline_forms_application.css devise.css )
|
214
|
+
# Fallback to assets pipeline if a precompiled asset is missed, we need this for ckeditor
|
215
|
+
config.assets.compile = true
|
216
|
+
# for devise
|
217
|
+
config.action_mailer.default_url_options = { :protocol => 'https', :host => 'YOURHOSTNAME' }
|
218
|
+
|
219
|
+
config.action_mailer.delivery_method = :smtp
|
220
|
+
config.action_mailer.smtp_settings = {
|
221
|
+
:address => 'YOURMAILSERVER',
|
222
|
+
:enable_starttls_auto => true,
|
223
|
+
:password => 'YOURPASSWORD',
|
224
|
+
:user_name => 'YOURUSERNAME'
|
225
|
+
}
|
214
226
|
end
|
215
227
|
\n"
|
216
228
|
File.open( 'config/environments/production.rb', 'a') {|f| f.write(precomp) }
|
@@ -12,10 +12,6 @@ set :application, "YOUR_APPLICATION_NAME"
|
|
12
12
|
set :domain, "YOUR_HOST_NAME"
|
13
13
|
set :user, "YOUR_USERNAME_ON_THE_HOST"
|
14
14
|
|
15
|
-
#
|
16
|
-
|
17
|
-
set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"") # Read from local system
|
18
|
-
|
19
15
|
set :bundle_flags, "--deployment"
|
20
16
|
|
21
17
|
set :use_sudo, false
|
@@ -39,15 +35,24 @@ end
|
|
39
35
|
|
40
36
|
before 'deploy:setup', 'rvm:install_rvm'
|
41
37
|
before 'deploy:setup', 'rvm:install_ruby'
|
42
|
-
|
38
|
+
before "deploy:assets:precompile", "deploy:fix_stuff"
|
43
39
|
|
44
40
|
|
45
41
|
namespace :deploy do
|
46
42
|
desc "Zero-downtime restart of Unicorn"
|
47
|
-
task :
|
43
|
+
task :zero_restart, :except => { :no_release => true } do
|
48
44
|
run "kill -s USR2 `cat #{shared_path}/pids/unicorn.pid`"
|
49
45
|
end
|
50
46
|
|
47
|
+
desc "Downtime restart of Unicorn"
|
48
|
+
task :restart, :except => { :no_release => true } do
|
49
|
+
run "kill -s KILL `cat #{shared_path}/pids/unicorn.pid`"
|
50
|
+
sleep 10
|
51
|
+
run "rvm rvmrc trust #{current_release}"
|
52
|
+
run "cd #{current_path} ; bundle exec r193_unicorn -c #{current_path}/config/unicorn.rb -D -E production"
|
53
|
+
end
|
54
|
+
|
55
|
+
|
51
56
|
desc "Start unicorn"
|
52
57
|
task :start, :except => { :no_release => true } do
|
53
58
|
run "rvm rvmrc trust #{current_release}"
|
@@ -69,6 +74,8 @@ namespace :deploy do
|
|
69
74
|
run "cd #{shared_path} && mkdir -p log"
|
70
75
|
run "cd #{shared_path} && mkdir -p sockets"
|
71
76
|
run "ln -s #{shared_path}/sockets #{release_path}/tmp/sockets"
|
77
|
+
run "cd #{shared_path} && mkdir -p uploads"
|
78
|
+
run "ln -s #{shared_path}/uploads #{release_path}/public/uploads"
|
72
79
|
raise "Rails environment not set" unless rails_env
|
73
80
|
run "cd #{release_path} && RAILS_ENV=#{rails_env} bundle exec rails g ckeditor:install "
|
74
81
|
end
|
data/lib/inline_forms/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inline_forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.40
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rvm
|