Can't upload to simple HTML to SWA using `swa deploy` command
See original GitHub issueBefore filing this issue, please ensure you’re using the latest CLI by running swa --version
and comparing to the latest version on npm.
Are you accessing the CLI from the default port :4280
?
- No, I am using a different port number (
--port
) and accessing the CLI from that port - Yes, I am accessing the CLI from port
:4280
Make sure you are accessing the URL printed in the console when running
swa start
!
ℹ️ NOTE: Make sure to enable debug logs when running any swa
commands using --verbose=silly
Describe the bug A clear and concise description of what the bug is.
I’m trying to upload HTMLs to the SWA. But nothing will be uploaded.
swa --verbose log deploy --env will --app-name aaabbccc -R ProjectDemo
To Reproduce Steps to reproduce the behavior:
-
mkdir aa
-
cd aa
-
echo 'Hello world' > index.html
-
swa login
-
Upload files
swa --verbose log deploy --env will --app-name aaabbccc -R ProjectDemo
The SWA is actually not uploaded. I can’t see any error on my Terminal screen.
Expected behavior
I expected to upload files successfully.
Screenshots
See above.
Desktop (please complete the following information):
- OS: Windows 10
- Version:
10.0.19043.2130
Additional context
Even I added --verbose log
, but I still can’t see more logs. Is there any way to debug swa-cli?
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Thanks @doggy8088 , we’re closing this issue.
Hi @doggy8088, Apologies for the experience! To begin with, could you please try the command
--verbose=silly
to be able to see the more logs in the commandline? And regarding the issue, it is a known bug as of now and the team is actively working towards enabling deployment from the root folder (which so happens to be the case for most of the simple HTML apps). You can read more about this here. As an alternative, I’d recommend trying to set up an app-location with the index.html in it and tryswa deploy --app-location ...
command to see if this works.Related to #514