Closed doggy8088 closed 3 months ago
Hi there - I am unable to reproduce this using the latest version of @azure/static-web-apps-cli (1.1.10) and installing via npm install -D.
If you are still having a problem with the latest version, please re-open and include information on:
Thanks!
Are you accessing the CLI from the default port
:4280
?--port
) and accessing the CLI from that port:4280
ℹ️ NOTE: Make sure to enable debug logs when running any
swa
commands using--verbose=silly
Describe the bug
I was not able to deploy files using the following command under Ubuntu Linux.
I'll get the following error:
For the workaround, I reference from https://github.com/microsoft/vscode-docker/issues/1515 and install
gnome-keyring
package before running aboveswa deploy
command.After that, I tried to run
swa deploy
again. I got the following errors.To Reproduce Steps to reproduce the behavior:
Create a new project in Azure DevOps Service.
Create a release pipeline and choose
ubuntu-latest
hosted agent.In the pipelines, I have to install
swa
first. =>npm install -g @azure/static-web-apps-cli
Setup
SWA_CLI_DEPLOYMENT_TOKEN
environment variable with a deployment token retrieved from Azure Portal.Put a simple HTML file under
public
folder.Add a task to deploy site:
swa deploy --app-location public --env production --verbose=silly
Create a release.
Expected behavior
I expected to deploy my site onto SWA correctly.
Screenshots N/A
Desktop (please complete the following information):
ubuntu-latest
(Azure Pipeline's Hosted Agent)Additional context