deplay 1.0.0 → 1.0.1
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/README.md +29 -21
- data/lib/deplay.rb +1 -0
- metadata +2 -2
data/README.md
CHANGED
@@ -1,56 +1,64 @@
|
|
1
1
|
[](http://coderwall.com/jeroenr)
|
2
2
|
|
3
|
-
#
|
3
|
+
# deplay
|
4
4
|
|
5
|
-
|
5
|
+
deplay is a capistrano plugin to facilitate the deployment of Play! applications (inspired by supply_drop). It works by packaging your Play! application and copying (using rsync, or scp) it to your servers
|
6
6
|
|
7
7
|
### Installation
|
8
8
|
|
9
|
-
gem install
|
9
|
+
gem install deplay
|
10
10
|
|
11
11
|
or with Bundler
|
12
12
|
|
13
|
-
gem '
|
13
|
+
gem 'deplay'
|
14
14
|
|
15
15
|
### Tasks
|
16
16
|
|
17
|
-
cap
|
17
|
+
cap deplay:setup
|
18
18
|
|
19
|
-
This sets up the environment for
|
19
|
+
This sets up the environment for Play! deployment, depending on your configuration.
|
20
20
|
|
21
|
-
cap
|
21
|
+
cap deplay:deploy_dev
|
22
22
|
|
23
|
-
This deploys the
|
23
|
+
This deploys the Play! application on the target servers using development configuration.
|
24
24
|
|
25
|
-
cap
|
25
|
+
cap deplay:deploy_prod
|
26
26
|
|
27
|
-
|
27
|
+
This deploys the Play! application on the target servers using production configuration.
|
28
|
+
|
29
|
+
cap deplay:stop
|
30
|
+
|
31
|
+
Stops the Play! application.
|
32
|
+
|
33
|
+
cap deplay:start
|
34
|
+
|
35
|
+
Starts the Play! application.
|
28
36
|
|
29
37
|
### Configuration
|
30
38
|
|
31
39
|
At the top of your deploy.rb
|
32
40
|
|
33
41
|
require 'rubygems'
|
34
|
-
require '
|
42
|
+
require 'deplay'
|
35
43
|
|
36
44
|
then optionally set some variables
|
37
45
|
|
38
|
-
set :
|
46
|
+
set :app_name, 'my_app'
|
39
47
|
|
40
|
-
the
|
48
|
+
the name of your app. Used for the log file and messages
|
41
49
|
|
42
|
-
set :
|
50
|
+
set :log_dir, '/var/log'
|
43
51
|
|
44
|
-
the
|
52
|
+
the log directory on the target machine.
|
45
53
|
|
46
|
-
set :
|
54
|
+
set :prod_conf, 'prod.conf'
|
47
55
|
|
48
|
-
the
|
56
|
+
the production configuration file to use.
|
49
57
|
|
50
|
-
set :
|
58
|
+
set :deploy_to, '/var/lib/my_app'
|
51
59
|
|
52
|
-
|
60
|
+
the path to deploy to.
|
53
61
|
|
54
|
-
set :
|
62
|
+
set :project_home, '.'
|
55
63
|
|
56
|
-
|
64
|
+
the location of your Play! project (local path).
|
data/lib/deplay.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deplay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-03-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|