rails-maker 0.1.9 → 0.1.11
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62d9a7e49c5703315aa44b194c55a6197f303e45
|
4
|
+
data.tar.gz: 6631d0e727c1c08d941018a74526548af10449ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96d6fa131d49f05b70a11960f73453cf0dbb8b58dc60c778cc80b0bc27f6b998988cc4961e97ffe475248a5283bc90b88c179640818c94ca27aebac730c4dfa1
|
7
|
+
data.tar.gz: 3220bd9e62314ec7339403a985c01147d5b02707229f231e4274a5cc90d86a96e143719762a65591081594c092cc83359956fe39922eb55af96958152668612d
|
data/lib/rails-maker/version.rb
CHANGED
@@ -9,6 +9,7 @@ files << 'initializers'
|
|
9
9
|
files << 'simple_routes'
|
10
10
|
files << 'public_layout'
|
11
11
|
files << 'admin_part'
|
12
|
+
files << 'capistranos'
|
12
13
|
|
13
14
|
files.each do |file|
|
14
15
|
apply File.expand_path("../lib/#{file}.rb", __FILE__)
|
@@ -32,8 +33,10 @@ say <<-D
|
|
32
33
|
4 - in terminal change your directory to application root
|
33
34
|
5 - run 'rake db:create'
|
34
35
|
6 - run 'rails generate devise:install' and 'rails generate devise User'
|
35
|
-
7 -
|
36
|
-
8 - run '
|
36
|
+
7 - look at and correct config/deploy.rb file
|
37
|
+
8 - run 'rake db:migrate'
|
38
|
+
9 - run 'rails s' from your project directory
|
39
|
+
10 - to deploy you have to run cap unicorn:setup, cap deploy:setup, cap deploy:migrations, cap sidekiq:start, after updates - cap deploy:update and cap unicorn:restart
|
37
40
|
|
38
41
|
########################################################################
|
39
42
|
D
|
@@ -0,0 +1,36 @@
|
|
1
|
+
say '## CAPISTRANOS >>'
|
2
|
+
|
3
|
+
run 'capify .'
|
4
|
+
|
5
|
+
run "rm config/deploy.rb"
|
6
|
+
create_file 'config/deploy.rb', <<-END
|
7
|
+
set :application, '#{app_name}'
|
8
|
+
set :repository, "your-git-address-repository"
|
9
|
+
|
10
|
+
role :web, "your-server-address"
|
11
|
+
role :app, "your-server-address"
|
12
|
+
role :db, "your-server-address", primary: true
|
13
|
+
|
14
|
+
set :user, '#{app_name}'
|
15
|
+
set :password, "your-project-user-password"
|
16
|
+
|
17
|
+
set :deploy_to, "/home/\#{user}/apps/\#{application}/"
|
18
|
+
|
19
|
+
set :db_adapter, "postgresql"
|
20
|
+
set :db_pool, 100
|
21
|
+
set :db_database, '#{app_name}_production'
|
22
|
+
set :db_host, 'your-server-address'
|
23
|
+
|
24
|
+
set :db_user, '#{app_name}'
|
25
|
+
set :db_password, 'your-database-user-password'
|
26
|
+
|
27
|
+
set :server_name, "your-server-address-or-domain-name"
|
28
|
+
|
29
|
+
require "rvm/capistrano"
|
30
|
+
require 'bundler/capistrano'
|
31
|
+
require 'sidekiq/capistrano'
|
32
|
+
|
33
|
+
set :sidekiq_pid, "\#{deploy_to}shared/pids/sidekiq.pid"
|
34
|
+
END
|
35
|
+
|
36
|
+
append_file 'Capfile', "\nrequire 'crecipes'\n"
|
data/templates/default/lib/db.rb
CHANGED
@@ -46,6 +46,11 @@ gem 'jquery-rails'
|
|
46
46
|
gem 'jquery-ui-rails'
|
47
47
|
gem 'sass-rails'
|
48
48
|
gem 'bootstrap-sass'
|
49
|
+
|
50
|
+
gem_group :production do
|
51
|
+
gem 'unicorn'
|
52
|
+
end
|
53
|
+
|
49
54
|
gem_group :assets do
|
50
55
|
gem 'compass-rails'
|
51
56
|
gem "uglifier"
|
@@ -62,6 +67,8 @@ gem_group :development do
|
|
62
67
|
gem "capistrano"
|
63
68
|
gem "capistrano-ext"
|
64
69
|
gem "capistrano_colors"
|
70
|
+
gem "rvm-capistrano"
|
71
|
+
gem 'crecipes', git: "https://github.com/umerkulovb/crecipes"
|
65
72
|
end
|
66
73
|
|
67
74
|
gem_group :test, :development do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
say '## INITIALIZERS >>'
|
1
|
+
say '## INITIALIZERS/CONFIGS >>'
|
2
2
|
|
3
3
|
initializer 'raven.rb', <<-END
|
4
4
|
require 'raven'
|
@@ -6,4 +6,14 @@ require 'raven'
|
|
6
6
|
Raven.configure do |config|
|
7
7
|
config.dsn = 'https://secret:public@app.getsentry.com/appid'
|
8
8
|
end
|
9
|
-
END
|
9
|
+
END
|
10
|
+
|
11
|
+
# create_file 'config/sidekiq.yml', <<-END
|
12
|
+
# ---
|
13
|
+
# :concurrency: 5
|
14
|
+
# :pidfile: tmp/pids/sidekiq.pid
|
15
|
+
# staging:
|
16
|
+
# :concurrency: 10
|
17
|
+
# production:
|
18
|
+
# :concurrency: 50
|
19
|
+
# END
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-maker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Kalbazov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -157,6 +157,7 @@ files:
|
|
157
157
|
- templates/default/lib/authentication/user_auth_model.rb
|
158
158
|
- templates/default/lib/authentication/user_model.rb
|
159
159
|
- templates/default/lib/authorization.rb
|
160
|
+
- templates/default/lib/capistranos.rb
|
160
161
|
- templates/default/lib/css.rb
|
161
162
|
- templates/default/lib/db.rb
|
162
163
|
- templates/default/lib/db_seed.rb
|
@@ -202,5 +203,5 @@ rubyforge_project:
|
|
202
203
|
rubygems_version: 2.0.3
|
203
204
|
signing_key:
|
204
205
|
specification_version: 4
|
205
|
-
summary: rails-maker-0.1.
|
206
|
+
summary: rails-maker-0.1.11
|
206
207
|
test_files: []
|