mina 1.0.2 → 1.0.3
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 +4 -4
- data/data/deploy.rb +4 -4
- data/data/deploy.sh.erb +1 -1
- data/docs/migrating.md +2 -1
- data/lib/mina/configuration.rb +1 -1
- data/lib/mina/version.rb +1 -1
- data/tasks/mina/default.rb +3 -0
- data/tasks/mina/deploy.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cae22a1f308c5c03b29a2e0e6999a4d91be03d22
|
4
|
+
data.tar.gz: 21bbd317703ba2e9edce06b4d686b2c0c5da531d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb92bab261cc5e30981c4758b7e123f93eb18e39a4c0dddf6ebc8832101c7eeca68be40990c5c2dd91bab40bf24a0d88273201f7f9283f955040ae6ed47b012b
|
7
|
+
data.tar.gz: d739c256ef6f281ec060baebf825c35390748f9575a3284460a93e474a832cfde2030152a226534a46ec76d976c12315498e17f90a73ab6b6c23f044a0a0990f
|
data/data/deploy.rb
CHANGED
@@ -19,11 +19,11 @@ set :branch, 'master'
|
|
19
19
|
# set :port, '30000' # SSH port number.
|
20
20
|
# set :forward_agent, true # SSH forward_agent.
|
21
21
|
|
22
|
-
#
|
23
|
-
# set :shared_dirs, fetch(:shared_dirs, []).push('
|
22
|
+
# shared dirs and files will be symlinked into the app-folder by the 'deploy:link_shared_paths' step.
|
23
|
+
# set :shared_dirs, fetch(:shared_dirs, []).push('somedir')
|
24
24
|
# set :shared_files, fetch(:shared_files, []).push('config/database.yml', 'config/secrets.yml')
|
25
25
|
|
26
|
-
# This task is the environment that is loaded all remote run commands, such as
|
26
|
+
# This task is the environment that is loaded for all remote run commands, such as
|
27
27
|
# `mina deploy` or `mina rake`.
|
28
28
|
task :environment do
|
29
29
|
# If you're using rbenv, use this to load the rbenv environment.
|
@@ -68,4 +68,4 @@ end
|
|
68
68
|
|
69
69
|
# For help in making your deploy script, see the Mina documentation:
|
70
70
|
#
|
71
|
-
# - https://github.com/mina-deploy/mina/docs
|
71
|
+
# - https://github.com/mina-deploy/mina/tree/master/docs
|
data/data/deploy.sh.erb
CHANGED
@@ -25,7 +25,7 @@ fi
|
|
25
25
|
# Check lockfile
|
26
26
|
if [ -e "<%= fetch(:lock_file) %>" ]; then
|
27
27
|
echo "! ERROR: another deployment is ongoing."
|
28
|
-
echo "The file '<%= fetch(:lock_file) %>' was found."
|
28
|
+
echo "The file '<%= fetch(:lock_file) %>' was found. File was last modified at $(stat -c %y <%= fetch(:lock_file) %>)"
|
29
29
|
echo "If no other deployment is ongoing, run 'mina deploy:force_unlock' to delete the file."
|
30
30
|
exit 17
|
31
31
|
fi
|
data/docs/migrating.md
CHANGED
@@ -7,6 +7,7 @@ Migrating from 0.3.x to 1.0
|
|
7
7
|
* `queue!` -> `command` # it will output the command if verbose is true
|
8
8
|
* `to` -> `on` # changes queue name
|
9
9
|
* `in_directory` -> `in_path` # wraps commands to be run in specified path
|
10
|
+
* `invoke :'task[param]'` -> `invoke :task, param` # passes params to the task
|
10
11
|
|
11
12
|
## new
|
12
13
|
* `run` # runs commands on a specified backend, this has replaced old before and after hooks
|
@@ -34,6 +35,6 @@ All `*_path` variables (`:current_path`, `:shared_path`, ...) now include `:depl
|
|
34
35
|
# Using new mina on old projects
|
35
36
|
|
36
37
|
* run `mina setup`
|
37
|
-
* if you do not want for bundle to install gems copy `current/vendor/bundle` to `/shared/
|
38
|
+
* if you do not want for bundle to install gems copy `current/vendor/bundle` to `/shared/vendor/bundle`
|
38
39
|
* if you do not want to precompile assets copy `current/public/assets` to `shared/public/assets`
|
39
40
|
* if you want to precompile you will need to run deploy with `force_asset_precompile=true`
|
data/lib/mina/configuration.rb
CHANGED
data/lib/mina/version.rb
CHANGED
data/tasks/mina/default.rb
CHANGED
data/tasks/mina/deploy.rb
CHANGED
@@ -27,7 +27,7 @@ namespace :deploy do
|
|
27
27
|
end
|
28
28
|
|
29
29
|
fetch(:shared_files, []).each do |linked_path|
|
30
|
-
command %{ln -
|
30
|
+
command %{ln -sf "#{fetch(:shared_path)}/#{linked_path}" "./#{linked_path}"}
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
@@ -73,7 +73,7 @@ task :setup do
|
|
73
73
|
fetch(:shared_dirs, []).each do |linked_dir|
|
74
74
|
command %{mkdir -p "#{linked_dir}"}
|
75
75
|
end
|
76
|
-
fetch(:
|
76
|
+
fetch(:shared_files, []).each do |linked_path|
|
77
77
|
command %{mkdir -p "#{File.dirname(linked_path)}"}
|
78
78
|
end
|
79
79
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|