belt 0.5.2 → 0.5.3
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/CHANGELOG.md +12 -0
- data/lib/belt/version.rb +1 -1
- data/lib/templates/module/main.tf.erb +3 -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: 2267465d1ad5fcc7e7e8b7d7c6be91919275a8bd6bc541c82c9751ac2265ab27
|
|
4
|
+
data.tar.gz: 12c71c5a5db0520f26ee6df68fbbbbd5403105cb9ab2c08da2719d6513a6269e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7716c4d8eebea928388accc998fb38f00ffedf9c5cd8585ef6e8540d2a524e5a139002d434b1a5644e3b656c394692438715b39e87d7e9682b05b948273a8213
|
|
7
|
+
data.tar.gz: 7259396f97e7e750c9b6f19092535deb3552e98a2d9af927f01a0bfef09352b0164ad9febf1de4572ca132ad82686d60f101c5b640a32013d88019395e0dd70a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.3
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **New apps now package `lambda/config/` into every Lambda.** The generated
|
|
8
|
+
`infrastructure/modules/app/main.tf` listed `lambda_shared_dirs` without `config`, so
|
|
9
|
+
`lambda/config/environment.rb` never reached `/var/task`. Handlers generated by
|
|
10
|
+
belt-pay (`pay_webhooks.rb`) and belt-messaging (`messaging_events.rb`) start with
|
|
11
|
+
`require_relative 'config/environment'`, so they crashed on init with
|
|
12
|
+
`cannot load such file -- /var/task/config/environment`. Existing apps: add `"config"`
|
|
13
|
+
to `lambda_shared_dirs` in `infrastructure/modules/app/main.tf` and redeploy.
|
|
14
|
+
|
|
3
15
|
## 0.5.2
|
|
4
16
|
|
|
5
17
|
### Added
|
data/lib/belt/version.rb
CHANGED
|
@@ -25,7 +25,9 @@ resource "conveyor_belt" "main" {
|
|
|
25
25
|
source = "${path.module}/../../../config/routes.rb"
|
|
26
26
|
app_name = var.app_name
|
|
27
27
|
lambda_source_dir = "${path.module}/../../../lambda"
|
|
28
|
-
|
|
28
|
+
# "config" ships lambda/config/environment.rb, which the belt-pay and belt-messaging
|
|
29
|
+
# handlers require_relative at boot.
|
|
30
|
+
lambda_shared_dirs = ["config", "controllers", "helpers", "lib", "models", "views"]
|
|
29
31
|
<% if @frontend -%>
|
|
30
32
|
# CloudFront first so SPA→API CORS works out of the box (tutorial footgun fixed).
|
|
31
33
|
# localhost stays via env frontend_urls for local `belt server` dev.
|