capistrano-craft 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: fceeba041e1f430d60d18f014f8f5f17688a0bed40e0c162286ecd76a5b56b84
4
- data.tar.gz: 0fc17f5c3ff63a0199cdaf5d44834824397fe19a128478aea2e93484fe4c2be5
3
+ metadata.gz: 40559e8e7937d54d3e1a6e8c1b812e128f3c48dc1da2244f5b24c522178a175c
4
+ data.tar.gz: dfb64846468a4cdf0ab449c0ad4a37064ebfc449c548ba11120842f2e5dd1e35
5
5
  SHA512:
6
- metadata.gz: a3046e543a9900d4476eba382e240df0a95a725ccce70432685f7fae494f2fe459666863599c719dcbba65f898a54b9ea909967fd82024d041eee3c4519d43d9
7
- data.tar.gz: 501bf426899abe035c403c1e69d35a00715e3f574211a74ca155ddb1cdfe92c90c0a96178448bc9d411758421c6a72b18f89c71d194e3a80789654c6e71a654f
6
+ metadata.gz: a528f7fea94fd4f1e1cc2dc5b551457358fb5b0f2b7eeaf535b9030351d4b55985e68a5c7d06559ce557abc8ce2a4aa0012f8322d3bf9fe1430ed15eb0d6a41d
7
+ data.tar.gz: 4d6774266ca1516f575f3ae153ce1cfec05875cb7d55fd5f6fc123df130576853b9253a4e8951b40afd26dbc3a4356986be09b9daed422db90075b464194d554
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-craft (0.2.0)
4
+ capistrano-craft (0.2.1)
5
5
  capistrano (~> 3.1)
6
6
  capistrano-composer (~> 0.0.6)
7
7
 
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # Capistrano::Craft
2
2
 
3
- As of November 2019 this is very still very much under development. Please make sure you have appropriate backups to avoid any potential data loss.
4
-
5
3
  This gem automates the deployment of Craft CMS apps with Capistrano. It will automatically detect local and remote environment settings to make synchronizing of database and assets straightforward.
6
4
 
7
5
  ## Installation
@@ -21,7 +19,8 @@ Or install system wide:
21
19
  The setting you will likely need to customize is:
22
20
  ```
23
21
  # This should be your command to compile assets for production
24
- set :craft_compile_assets, "npm run production --production --silent"
22
+ set :craft_compile_assets, true
23
+ set :craft_compile_assets_command, "npm install && npm run production --production --silent"
25
24
  ```
26
25
 
27
26
  If you are using PHP-FPM it is necessary to restart it after deployment. Currently capistrano-craft doesn't handle this for you and you may need to add something along the lines of the following to your `deploy.rb` file.
@@ -38,7 +37,7 @@ end
38
37
 
39
38
  ### Compiling Assets
40
39
 
41
- Change `:craft_compile_assets` to be your production asset compilation command. By default, it is assumed your project has a `package.json` file and `npm install` will be run first. The default asset compilcation command is `npm run production --production --silent`
40
+ Change `:craft_compile_assets_command` to be your production asset compilation command. By default, it is assumed your project has a `package.json` file and `npm install` will be run first. The default asset compilcation command is `npm run production --production --silent`. You can disable asset compilation altogether by settng `:craft_compile_assets` to `false`.
42
41
 
43
42
  ### Synchronize Database
44
43
 
@@ -65,7 +64,8 @@ set :craft_local_backups, "backups"
65
64
  set :craft_remote_backups, "shared/backups"
66
65
 
67
66
  # assets
68
- set :craft_compile_assets, "npm run production --production --silent"
67
+ set :craft_compile_assets, true
68
+ set :craft_compile_assets_command, "yarn install && yarn run production"
69
69
 
70
70
  # console
71
71
  set :craft_console_path, -> { "craft" }
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Craft
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-craft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Dyer