locum-best-practices 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97d528d0dc2eb4b5e032e41d12aec5b43f28b2e0
|
4
|
+
data.tar.gz: cc3bb4b5fdc82734a00446b2fe09dbb92e2e909a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acdc6890297f665029857621b844fa36ab0f9d8a2a2f4701882d3bb66fb50ac1e45520e7eb89dac965c34c39d2309479093f4494540644fbfc96f77346fa71df
|
7
|
+
data.tar.gz: b80ba43423d13f8c0fe04bba3168e75423cb4936534887983364a3eabf4e6f2c82cfb9bf2a7cfe1afce9023f87c3b1070e5d3b88145be291bb20f8697d2591b2
|
data/README.md
CHANGED
@@ -1,36 +1,71 @@
|
|
1
|
-
# Locum
|
1
|
+
# Locum Best Practices
|
2
|
+
> for Ruby on Rails applications
|
2
3
|
|
3
|
-
|
4
|
+
## Features
|
4
5
|
|
5
|
-
|
6
|
+
* Deployment
|
7
|
+
- Capistrano integration
|
8
|
+
- configuration and stages generator
|
9
|
+
- custom tasks
|
10
|
+
- predefined default [settings](lib/capistrano/snp/defaults.rb)
|
11
|
+
|
12
|
+
## Requirements
|
13
|
+
|
14
|
+
It is tested and works with:
|
15
|
+
|
16
|
+
* MRI >= 2.1
|
17
|
+
* Rails >= 4.2
|
18
|
+
|
19
|
+
Other versions are untested but might work fine.
|
6
20
|
|
7
21
|
## Installation
|
8
22
|
|
9
|
-
Add this line to your application's Gemfile:
|
23
|
+
Add this line to your application's Gemfile into `development` group:
|
10
24
|
|
11
|
-
|
12
|
-
gem 'locum-best-practices'
|
13
|
-
```
|
25
|
+
gem 'locum-best-practices'
|
14
26
|
|
15
27
|
And then execute:
|
16
28
|
|
17
29
|
$ bundle
|
18
30
|
|
19
|
-
|
31
|
+
## Usage
|
20
32
|
|
21
|
-
|
33
|
+
### Add deployment configuration
|
22
34
|
|
23
|
-
|
35
|
+
$ rails g locum:deploy
|
36
|
+
|
37
|
+
This creates the following files, you can edit them for your choice.
|
38
|
+
|
39
|
+
```
|
40
|
+
├── Capfile
|
41
|
+
└── config
|
42
|
+
├── deploy
|
43
|
+
│ ├── production.rb
|
44
|
+
│ └── testing.rb
|
45
|
+
├── environments
|
46
|
+
│ └── testing.rb
|
47
|
+
└── deploy.rb
|
48
|
+
```
|
49
|
+
|
50
|
+
## Advanced usage
|
51
|
+
|
52
|
+
### Install in your system:
|
53
|
+
|
54
|
+
gem install locum
|
55
|
+
|
56
|
+
And execute after 'cap install':
|
24
57
|
|
25
|
-
|
58
|
+
$ locum cap
|
26
59
|
|
27
|
-
|
60
|
+
### Custom stages
|
28
61
|
|
29
|
-
|
62
|
+
`production` and `testing` stages are generated by default, but you can easily
|
63
|
+
add any another:
|
30
64
|
|
31
|
-
|
65
|
+
$ rails g snp:deploy staging local sandbox qa etc
|
32
66
|
|
33
|
-
##
|
67
|
+
## License
|
34
68
|
|
35
|
-
|
69
|
+
This project rocks and uses MIT License (MIT).
|
36
70
|
|
71
|
+
Copyright (c) 2016 DarkCreative Studio
|
@@ -1,4 +1,6 @@
|
|
1
1
|
set :user, 'your_ssh_user'
|
2
2
|
set :login, 'your_locum_login'
|
3
3
|
set :rvm_ruby_version, 'your_ruby_version'
|
4
|
-
set :repo_url, '
|
4
|
+
set :repo_url, 'git_path_to_your_application'
|
5
|
+
|
6
|
+
#after 'unicorn:restart', 'sidekiq:restart'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locum-best-practices
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DarkWater
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -205,8 +205,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
207
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.
|
208
|
+
rubygems_version: 2.5.2
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: Simple best practices, used for soft deployment to locum hosting
|
212
212
|
test_files: []
|
213
|
+
has_rdoc:
|