Skip to content

Commit

Permalink
refactor: update command
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuki-joto committed Jan 28, 2024
1 parent 15a9811 commit 861e34a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/decidim-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ export class DecidimStack extends cdk.Stack {
}),
streamPrefix: 'app'
}),
command: [
'sh',
'-c',
'bundle exec rails db:create; bundle exec rake db:migrate && rails s -b 0.0.0.0'
],
healthCheck: {
command: [
'CMD-SHELL',
Expand Down
5 changes: 5 additions & 0 deletions test/__snapshots__/decidim-cfj-cdk.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,11 @@ exports[`DecidimStack Created 1`] = `
],
},
{
"Command": [
"sh",
"-c",
"bundle exec rails db:create; bundle exec rake db:migrate && rails s -b 0.0.0.0",
],
"Environment": [
{
"Name": "AWS_CLOUD_FRONT_END_POINT",
Expand Down

0 comments on commit 861e34a

Please sign in to comment.