yourtar-cli 1.0.3 → 1.1.0

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.
@@ -11,8 +11,9 @@ services:
11
11
  volumes:
12
12
  - ../:/var/www/html/
13
13
  - ../vendor:/var/www/html/vendor
14
- links:
15
- - mysql_{{name}}_back
14
+ depends_on:
15
+ mysql_{{name}}_back:
16
+ condition: service_healthy
16
17
 
17
18
  nginx_{{name}}_back:
18
19
  container_name: nginx_{{name}}_back
@@ -37,6 +38,10 @@ services:
37
38
  - "3306"
38
39
  environment:
39
40
  MYSQL_ROOT_PASSWORD: ${DATABASE_PASSWORD}
41
+ healthcheck:
42
+ test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
43
+ timeout: 20s
44
+ retries: 10
40
45
  volumes:
41
46
  - ./db:/var/lib/mysql
42
47
 
@@ -14,8 +14,9 @@ services:
14
14
  - ../:/var/www/html/
15
15
  - ../vendor:/var/www/html/vendor
16
16
  - ./config/php/php-ini-overrides.ini:/usr/local/etc/php/conf.d/php-ini-overrides.ini
17
- links:
18
- - mysql_{{name}}_back
17
+ depends_on:
18
+ mysql_{{name}}_back:
19
+ condition: service_healthy
19
20
 
20
21
  nginx_{{name}}_back:
21
22
  container_name: nginx_{{name}}_back
@@ -45,6 +46,10 @@ services:
45
46
  - "3306"
46
47
  environment:
47
48
  MYSQL_ROOT_PASSWORD: ${DATABASE_PASSWORD}
49
+ healthcheck:
50
+ test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
51
+ timeout: 20s
52
+ retries: 10
48
53
  volumes:
49
54
  - ./db:/var/lib/mysql
50
55
 
@@ -14,9 +14,8 @@ services:
14
14
  - ../vendor:/var/www/html/vendor
15
15
  - ./config/php/php-ini-overrides.ini:/usr/local/etc/php/php.ini
16
16
  depends_on:
17
- - mysql_{{name}}_back
18
- links:
19
- - mysql_{{name}}_back
17
+ mysql_{{name}}_back:
18
+ condition: service_healthy
20
19
 
21
20
  nginx_{{name}}_back:
22
21
  container_name: nginx_{{name}}_back
@@ -44,6 +43,10 @@ services:
44
43
  - "3306"
45
44
  environment:
46
45
  - MYSQL_ROOT_PASSWORD=${DATABASE_PASSWORD}
46
+ healthcheck:
47
+ test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
48
+ timeout: 20s
49
+ retries: 10
47
50
  volumes:
48
51
  - ./db:/var/lib/mysql
49
52
 
package/bin/index.js CHANGED
@@ -55,8 +55,6 @@ programm.command('create')
55
55
  console.error("ERROR!!! We don't know about this type: " + answers.platform);
56
56
  }
57
57
 
58
- fs.chmodSync('./' + projectFolder);
59
-
60
58
  await copyTemplate(templateFolder, './' + projectFolder, answers.name);
61
59
 
62
60
  switch(answers.platform) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yourtar-cli",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "This CLI for YourTar developers and our clients ;-)",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {