Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0124e57

Browse filesBrowse files
add CloudFormation instruction
1 parent ab2d2f5 commit 0124e57
Copy full SHA for 0124e57

File tree

Expand file treeCollapse file tree

1 file changed

+30
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+30
-0
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,36 @@ The deploy_laravel script takes care of the Laravel deployment. You might want t
1212
Currently it is not possible to pass AWS variables into buildspec.yml from CodePipeline. See more info:
1313
https://stackoverflow.com/questions/41704517/aws-pass-in-variable-into-buildspec-yml-from-codepipeline
1414

15+
As an alternative you can consider the JSON snippet below for your CloudFormation script. The DBHost, DBName, DBUsername and DBPassword varables refer to your database parameters, which should also be defined in your CloudFormation script.
16+
```
17+
"files" : {
18+
"/var/www/.env" : {
19+
"content" : { "Fn::Join" : ["", [
20+
"APP_ENV=local\n",
21+
"APP_DEBUG=true\n",
22+
"APP_KEY=base64:l6kg/jw8Bk1c70FztrJfhXz9mqocYp+aHT1F7JahjxQ=\n",
23+
"\n",
24+
"APP_URL=http://localhost\n",
25+
"SESSION_DOMAIN=localhost\n",
26+
"\n",
27+
"DB_CONNECTION=mysql\n",
28+
"DB_HOST=", { "Ref" : "DBHost" }, "\n",
29+
"DB_PORT=3306\n",
30+
"DB_DATABASE=", { "Ref" : "DBName" }, "\n",
31+
"DB_USERNAME=", { "Ref" : "DBUsername" }, "\n",
32+
"DB_PASSWORD=", { "Ref" : "DBPassword" }, "\n",
33+
"\n",
34+
"CACHE_DRIVER=file\n",
35+
"SESSION_DRIVER=database\n",
36+
"QUEUE_DRIVER=sync\n"
37+
]]},
38+
"mode" : "000644",
39+
"owner" : "root",
40+
"group" : "root"
41+
}
42+
}
43+
```
44+
1545
## Deploy key
1646
If you want to clone a private repository and want to use a deploy key you can consider doing the following. Type the following command:
1747

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.