question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

startup-command parameter is ignored

See original GitHub issue

We’re using this GitHub action to deploy an app to Azure App Services. The workflows seems to works (and the deployment occurs) but the startup-command is ignored, and GitHub raises an error:

image

This message contradicts the yaml action definition file.

Here is our yaml action file:

name: REDACTED
on:
  push:
    branches:
      - production
jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
      - name: Set up Node.js version
        uses: actions/setup-node@v1
        with:
          node-version: "10.x"
      - name: npm install, build, and test
        run: |
          npm install
          npm run build --if-present
          npm run test --if-present
      - name: "Deploy to Azure Web App"
        uses: azure/webapps-deploy@v1
        with:
          app-name: "REDACTED"
          startup-command: "npm run api-prd"
          slot-name: "production"
          publish-profile: REDACTED
          package: .

Am I missing something or is it a known issue?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
aksm-mscommented, Jul 21, 2020

currently startup-command is not supported for windows web apps and if publish profile auth scheme is used. Please use Azure login before webapps-deploy action to use startup command with linux container. Refer Sample workflow

1reaction
suyash691commented, Jul 7, 2020

+1 on this issue with v2 The line in validation.js

 if (!!startupCommand) {
        throw new Error("startup-command is not a valid input for Windows web app or with publish-profile auth scheme.");
    }

This will always cause an exception to be thrown if startupcommand is present since this will evaluate to true with a non empty string

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command line parameter is being ignored - Stack Overflow
So the everything after the & is being ignored. If I pass the argument into the main method using Eclipse then the argument...
Read more >
basekey, -ininame startup parameters ignored in a .pf file.
Note: You can use the -basekey startup parameter only at the command line. It is ignored when used in a parameter (.pf) file....
Read more >
Launch executable command line parameters ignored
Ignoring the "online" version, my real question is this, why is the "caching mode" version bundle ignoring the command line parameters assigned ...
Read more >
Command Line arguments being ignored
When attempting to debug a native C++ application, command line arguments are being ignored. The arguments are being specified through the build properties ......
Read more >
Arma 3: Startup Parameters - Bohemia Interactive Community
If your CPU does not support Hyper-Threading or similar technology, this parameter is ignored. When disabled, only physical cores are used.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found