capistrano-craft 0.2.0 → 0.2.1
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/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/lib/capistrano/craft/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40559e8e7937d54d3e1a6e8c1b812e128f3c48dc1da2244f5b24c522178a175c
|
4
|
+
data.tar.gz: dfb64846468a4cdf0ab449c0ad4a37064ebfc449c548ba11120842f2e5dd1e35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a528f7fea94fd4f1e1cc2dc5b551457358fb5b0f2b7eeaf535b9030351d4b55985e68a5c7d06559ce557abc8ce2a4aa0012f8322d3bf9fe1430ed15eb0d6a41d
|
7
|
+
data.tar.gz: 4d6774266ca1516f575f3ae153ce1cfec05875cb7d55fd5f6fc123df130576853b9253a4e8951b40afd26dbc3a4356986be09b9daed422db90075b464194d554
|
data/Gemfile.lock
CHANGED
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,
|
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 `:
|
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,
|
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" }
|