-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapprunner.yaml
41 lines (40 loc) · 1.05 KB
/
apprunner.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: 1.0
runtime: ruby31
build:
env:
- name: DATABASE_URL
value: "postgresql://book-demo.cluster-coehuv4zwaxh.us-east-1.rds.amazonaws.com"
- name: DEMO_DATABASE
value: "book-demo"
- name: DEMO_DATABASE_USER
value: "demo"
- name: DEMO_DATABASE_PASSWORD
value: "demoRails1"
- name: SECRET_KEY_BASE
value: "secret"
- name: RAILS_ENV
value: "production"
commands:
build:
- sudo amazon-linux-extras enable postgresql14
- yum install -y libyaml-devel postgresql postgresql-server postgresql-devel
- bundle install
run:
runtime-version: 3.1.4
env:
- name: DATABASE_URL
value: "postgresql://book-demo.cluster-coehuv4zwaxh.us-east-1.rds.amazonaws.com"
- name: DEMO_DATABASE
value: "book-demo"
- name: DEMO_DATABASE_USER
value: "demo"
- name: DEMO_DATABASE_PASSWORD
value: "demoRails1"
- name: SECRET_KEY_BASE
value: "secret"
- name: RAILS_ENV
value: "production"
command: bash ./runme.sh
network:
port: 8080
env: APP_PORT