I uploaded it to the X server with Visual Studio Code SFTP, but it was uploaded to the top layer.

Asked 1 years ago, Updated 1 years ago, 257 views

sftp.json contains the following:

{
"name": "xserver",
"host": "sv10939.xserver.jp",
"protocol": "sftp",
"port": 10022,
"username": "ice888",
"password": "greenmile",
"privateKeyPath": "C:/Users/Masato/Documents/ssh/ice888.key",
"passphrase": "greenmile888",
"remotepath": "/home/ice888/siteof.net/public_html",
"uploadOnSave"—true
}

I think the remote path is correct, but in terms of hierarchy, it is uploaded to the siteof.net layer.
I would like to upload it like public_html.

When I called X server and asked them, they said there was no problem with the server, so it seems to be this problem.

I'll explain the situation because it might be a hint.
·The domain of siteofearth.com expired last December, and we are in the process of transferring data to siteof.net.

·I purchased siteof.net under your name com this month.

·I was able to upload it to siteof.net/public_html on Filzira.
However, I want to create a homepage while saving and uploading automatically in vscode, so I deleted it after confirming the upload.

·The folder uploaded to the top layer in vscode can be deleted on Filzira, but only the folder remains in File Manager on X Server.The cause is unknown.

I apologize for the poor explanation, but I would appreciate it if you could let me know as I would like to create a website as soon as possible.

I look forward to hearing from you.

vscode ftp

2023-01-31 23:15

1 Answers

If you look at the article that provides FTP configuration examples for X servers, it appears that if you are using your own domain, you will find the directory <proprietary domain name> underneath it, such as public_html.

"remotepath": "/<Proprietary domain name>/public_html"

"If your unique domain name is ""siteof.net"", the settings will look like the following."

"remotepath":"/siteof.net/public_html"

reference:
How to upload files to XServer (XSERVER)


2023-02-01 07:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.