deployku 0.0.4 → 0.0.5
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/deployku.gemspec +1 -1
- data/lib/deployku/plugins/nginx.rb +1 -1
- data/lib/deployku/plugins/rails.rb +5 -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: 8b256b0dad72cce530ea2435b9b4399595f77721
|
|
4
|
+
data.tar.gz: 5c98d716d4c87821a4daa7aa24611e3e6349b074
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b16337b94894ce39953a96f19b8e07854410957ac9f5979548ef4269b281ca4e507485fe0e4903560d706c378f34d51ca999b027d8c3d6076b3be4c228a32654
|
|
7
|
+
data.tar.gz: 3a824d3066bca52b68cd642d596ad0f3d9fc56d121bbd2d0fe4fe6081716ad7f7ac5acdaffb6d9c8019c44b05f5cd08902b0f5af145ccd7c662c0ff224923ecc
|
data/deployku.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ spec = Gem::Specification.new do |s|
|
|
|
13
13
|
s.email = "pejuko@gmail.com"
|
|
14
14
|
s.authors = ["Petr Kovář"]
|
|
15
15
|
s.name = 'deployku'
|
|
16
|
-
s.version = '0.0.
|
|
16
|
+
s.version = '0.0.5'
|
|
17
17
|
s.date = Time.now.strftime("%Y-%m-%d")
|
|
18
18
|
s.require_path = 'lib'
|
|
19
19
|
s.files = ["bin/deployku", "README.md", "deployku.gemspec", "Rakefile", "LICENSE"]
|
|
@@ -11,7 +11,7 @@ module Deployku
|
|
|
11
11
|
app_plug.config['nginx']['enabled'] = true
|
|
12
12
|
app_plug.config['nginx']['port'] = 80 unless app_plug.config['nginx']['port']
|
|
13
13
|
app_plug.config['nginx']['wait'] = 300 unless app_plug.config['nginx']['wait']
|
|
14
|
-
app_plug.config['nginx']['public_volume'] = '/
|
|
14
|
+
app_plug.config['nginx']['public_volume'] = '/public/' unless app_plug.config['nginx']['public_volume']
|
|
15
15
|
app_plug.config_save(app_name)
|
|
16
16
|
end
|
|
17
17
|
|
|
@@ -5,7 +5,7 @@ module Deployku
|
|
|
5
5
|
PACKAGES = ['nodejs']
|
|
6
6
|
|
|
7
7
|
def volumes
|
|
8
|
-
['/
|
|
8
|
+
['/public/']
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
def port
|
|
@@ -28,6 +28,8 @@ export RAILS_ENV=production
|
|
|
28
28
|
bundle exec rake db:migrate RAILS_ENV=production
|
|
29
29
|
bundle exec rake assets:precompile RAILS_ENV=production
|
|
30
30
|
|
|
31
|
+
rsync -av public/ /public/
|
|
32
|
+
|
|
31
33
|
bundle exec rails s -p #{Deployku::Config.port} -b 0.0.0.0 -e production
|
|
32
34
|
EOF
|
|
33
35
|
end
|
|
@@ -58,7 +60,7 @@ RUN /bin/bash -l -c 'gem install bundler'
|
|
|
58
60
|
|
|
59
61
|
RUN /bin/bash -l -c 'rvm cleanup all'
|
|
60
62
|
|
|
61
|
-
RUN apt-get install -y #{packages.join(' ')}
|
|
63
|
+
RUN apt-get install -y rsync #{packages.join(' ')}
|
|
62
64
|
|
|
63
65
|
RUN apt-get -y autoclean
|
|
64
66
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
@@ -70,6 +72,7 @@ ENTRYPOINT ["/start"]
|
|
|
70
72
|
ADD start /start
|
|
71
73
|
|
|
72
74
|
ADD app /app
|
|
75
|
+
RUN /bin/bash -l -c 'mkdir -p /public'
|
|
73
76
|
RUN /bin/bash -l -c 'cd app && RAILS_ENV=production bundle install --without development test'
|
|
74
77
|
EOF
|
|
75
78
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: deployku
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Petr Kovář
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-02-
|
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: pejuko@gmail.com
|