You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your application is now ready to be deployed. Follow [the deployment guide](https://bref.sh/docs/deploy.html).
97
+
98
+
### Console
99
+
100
+
As you may have noticed, we define a function of type "console" in `serverless.yml`. That function is using the [Console runtime](https://bref.sh/docs/runtimes/console.html), which lets us run the Antidot Framework Console on AWS Lambda.
101
+
102
+
To use it follow [the "Console" guide](https://bref.sh/docs/runtimes/console.html).
103
+
104
+
### Logs
105
+
106
+
We need to configure Monolog to log into `stderr` as well:
107
+
108
+
```yaml
109
+
# config/services/dependencies.prod.yaml
110
+
monolog:
111
+
handlers:
112
+
default:
113
+
type: 'stream'
114
+
options:
115
+
stream: 'php://stderr'
116
+
level: 400
117
+
```
118
+
119
+
### Environment variables
120
+
121
+
You can define your environment variables in `serverless.yml` in the [Globals section](https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst):
122
+
123
+
```yaml
124
+
Globals:
125
+
Function:
126
+
Environment:
127
+
Variables:
128
+
APP_ENV: prod
129
+
```
130
+
131
+
The secrets (e.g. database passwords) must however not be committed in this file.
132
+
133
+
To learn more about all this, read the [environment variables documentation](https://bref.sh/docs/environment/variables.html).
0 commit comments