capistrano-typo3 0.4.2 → 0.4.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: f20710709451fa8ed420e6d7cc7a997ebf9413a6
4
- data.tar.gz: df8b2c411e3c081b957a5dc9914b81b28a56506b
3
+ metadata.gz: 1a065d88787df5af0a0f268f7a98cd2b86e79039
4
+ data.tar.gz: 029e4098d431838cebe203df79f3870656a733cc
5
5
  SHA512:
6
- metadata.gz: 0557ee4a2d9b0b1dbc2933817a2bbfe9daf9cb49d7ea38d5c5b116ccd5419fe8f0709b34db4b1c499adb98ea33dd38eea51696d1bd8f39b4ae17addbd5fea0ad
7
- data.tar.gz: 0c90680b8bfdbe067356270fcfee1a5f284002e4be2956f34a32ad57669ace31865ebe6d2392cd60f0fe97bd56665b6d0378610dbc3b9a99acd9116cd309acbe
6
+ metadata.gz: abb9369739bef10998383553780c1faaf9ad83de8ca30967e9488910e27eaf22558062b1fc9ee33cdae534623ef5ec93095abbd89c95367ea41f5ab8b4b1bf2e
7
+ data.tar.gz: 59dc6a7478a7938807571beb6a0e0e7161c57b4b2fe6d0bbc4eb243c6858e2722011e36d3a449fbdee80349dac786cce0e1da6c813dd492d6a0f958371e28eda
data/README.md CHANGED
@@ -49,6 +49,8 @@ about this integrations. English version will follow soon.
49
49
  * http://stackoverflow.com/questions/9860593/deploying-multiple-applications-into-a-single-tree-with-capistrano-and-git
50
50
  * http://stackoverflow.com/questions/11905360/how-best-to-manage-typo3-installations-using-git
51
51
 
52
+ ![image](http://picdrop.t3lab.com/1ut2sCxI6E.png)
53
+
52
54
  ## Contributing
53
55
 
54
56
  1. Fork it ( https://github.com/[my-github-username]/capistrano-typo3/fork )
@@ -20,5 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
- spec.add_runtime_dependency "capistrano", ">= 3"
23
+ spec.add_runtime_dependency "capistrano", "~> 3"
24
24
  end
@@ -249,7 +249,50 @@ DBSYNC6
249
249
  invoke 'typo3:helper:restart_webserver'
250
250
  end
251
251
 
252
- desc "setup homestead"
252
+
253
+ desc "init site from scratch (new installs)"
254
+ task "init_site" do
255
+ invoke 'typo3:vagrant:check_branch'
256
+
257
+ on roles(:all) do
258
+ ## PURGE IF NEEDED
259
+ execute "sudo rm -Rf /var/shared/fileadmin /var/shared/typo3temp /var/shared/uploads"
260
+ execute "sudo rm -f /var/current"
261
+ execute "sudo mysql -e 'DROP DATABASE IF EXISTS #{fetch(:dbname)}'"
262
+
263
+ ## CREATE
264
+ execute "sudo mkdir -p /var/shared/fileadmin /var/shared/typo3temp /var/shared/uploads"
265
+ execute "sudo chown -Rf vagrant.vagrant /var/shared/fileadmin /var/shared/typo3temp /var/shared/uploads"
266
+ execute "sudo ln -s /var/www/local.typo3.org /var/current"
267
+ end
268
+
269
+ on roles(:all) do
270
+ execute "sudo mysqladmin create #{fetch(:dbname)}"
271
+ end
272
+
273
+ on roles(:all) do
274
+ if fetch(:hs_default_upstream_php_engine)
275
+ execute "sudo sed -i 's/set $upstream .*/set $upstream #{fetch(:hs_default_upstream_php_engine)};/g' /etc/nginx/sites-available/local.typo3.org.conf"
276
+ end
277
+ execute "sudo sed -i 's/root .*/root \"\\/var\\/www\\/local\\.typo3\\.org\\/dummy\\/\";/g' /etc/nginx/sites-available/local.typo3.org.conf"
278
+ end
279
+
280
+ invoke 'typo3:helper:restart_webserver'
281
+
282
+ print <<MSG
283
+
284
+ ----------------------------------------------------------------------
285
+ The website conf seems to be succesfully installed in the Homestead Vagrant
286
+ machine.
287
+
288
+ Open the site at http://local.typo3.org"
289
+
290
+ you can now install TYPO3
291
+
292
+ ----------------------------------------------------------------------
293
+ MSG
294
+ end
295
+ desc "setup site (remote exists)"
253
296
  task "setup_site" do
254
297
  invoke 'typo3:vagrant:check_branch'
255
298
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Typo3
3
- VERSION = "0.4.2"
3
+ VERSION = "0.4.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-typo3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pim Snel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-31 00:00:00.000000000 Z
11
+ date: 2018-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: capistrano
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3'
55
55
  description: Capistrano 3 deployment and continious delivery tasks for TYPO3 versions