sunzi-rails 0.2.16 → 0.2.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/sunzi/version.rb +1 -1
- data/lib/templates/create/files/rails_logs +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0724c6c29764917ecadfa8dc048a322a4246296d
|
4
|
+
data.tar.gz: f2fa00a0d4f77b5b1ded1400b2e58f06baf27307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fe756d5caa495847a56dd1ed7698c469674970e6ee24e08bbd730ea7aea3a6b37d5f0948f5ac1f2cc6095a8f7e6ace39cea63c8707929be8dc45bc620471247
|
7
|
+
data.tar.gz: 45aca744db81a15a7f5525c56ebf65badfe3d7b9fbd95527b6b533519bf5b2afdbd79188e91bb04d7daa0f0848826eeaead651bdf3fe80d7b82c64228c889a91
|
data/README.md
CHANGED
@@ -60,7 +60,7 @@ Finally, add `/compiled` to your `.gitignore` file.
|
|
60
60
|
|
61
61
|
All those settings can be overriden in your `sunzi.yml` file within `attributes`.
|
62
62
|
|
63
|
-
Also, deploy.rb
|
63
|
+
Also, `deploy.rb`, `deploy/[stage].rb`, `database.yml` (prefixed with `db_`), `secrets.yml` and contextual attributes (prefixed with `env_`) are available through `@attributes`:
|
64
64
|
|
65
65
|
```ruby
|
66
66
|
@attributes.env_stage
|
@@ -71,6 +71,8 @@ Also, deploy.rb, deploy/[stage].rb, database.yml (prefixed with `db_`), secrets.
|
|
71
71
|
@attributes.env_port
|
72
72
|
```
|
73
73
|
|
74
|
+
It's important to note that `deploy.rb` and `deploy/[stage].rb` are loaded in that order and that variables defined within `deploy/[stage].rb` aren't available within `deploy.rb`.
|
75
|
+
|
74
76
|
Go into the project directory, then run `sunzi-cap deploy`:
|
75
77
|
|
76
78
|
```bash
|
data/lib/sunzi/version.rb
CHANGED