awslabs / awslabs/amazon-app-runner-deploy

Can't Run Multiple Commands Under "Build command" Config?

Open
#51 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
60
Forks
34
PR merge metrics
No merged PRs in 30d

Description

I have the following in my `package.json` file:

```
"scripts": {
"migrate": "knex migrate:latest"
},
```

Running `npm run migrate` works fine on my local machine. When I try to add this command onto my existing build command:

![1](https://github.com/aws/apprunner-roadmap/assets/2464164/20fd8183-863d-4f1e-af0d-57c639e37eae)

App Runner always gives an error and rolls back my change:

![2](https://github.com/aws/apprunner-roadmap/assets/2464164/62fcdd76-328f-4a6b-ac57-9cde1cd3df59)

Does App Runner not support multiple build commands?

Contributor guide

Open the contributing guide

Research direction

Start with the package.json scripts entry and reproduce the npm run migrate command through the existing App Runner build command configuration. Inspect the rollback error shown in the issue and determine whether multiple build commands are supported; done means establishing the supported command format or documenting the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, node.js
Domain
build-system, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.