Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

How to get proper file permissions on the destination server? #184

Open
RoneoOrg opened this issue Jun 8, 2021 · 0 comments
Open

How to get proper file permissions on the destination server? #184

RoneoOrg opened this issue Jun 8, 2021 · 0 comments

Comments

@RoneoOrg
Copy link

RoneoOrg commented Jun 8, 2021

Hello there,

I've been struggling for the last 3 hours to get correct file permissions on the destination server. I would definitively appreciate your insights.

Description

I would like to deploy some files to a FTP server, without SSH access.

Everything is fine (and this extension is awesome!), the files are properly created but the permissions are inaccurate:

I've set up some dummy files with different permissions (from chmod 777 to 600) and once uploaded with vscode-deploy-reloaded they are all -rw----r--.

Here is my settings.json:

{
  "deploy.reloaded": {

    "packages": [
      {
        "name": "Upload everything",
        "description": "Let's go!",
        "files": [
          "**/*"
        ]
      }
    ],
    
    "targets": [
      {
        "type": "ftp",
        "name": "GoFTP",
        "description": "Go FTP", 
        "dir": "/www/deploy",
        "host": "ftp.cluster020.hosting.ovh.net",
        "port": 21,
        "secure": true,
        "user": "userd",
        "password": "XXXXX"
      }
    ]
  }
}

What was tested so far

I set engine to ftp and ftp-legacy

I tried

  • "modes": "755",
  • "modes": 755 and
  • "modes": [ "**": 644 ]
    (I would prefer not to have to set up each file permission manually BTW)

Logs

The console logs show no errors:

[11:57:58] 🚀 (7 / 12) Deploying file '/dir/8.txt' to '/dir (GoFTP)' ... ✅ [377 ms]
[11:57:58] 🚀 (8 / 12) Deploying file '/dir/9.txt' to '/dir (GoFTP)' ... ✅ [290 ms]
[11:57:59] 🚀 (9 / 12) Deploying file '/dir/10.txt' to '/dir (GoFTP)' ... ✅ [306 ms]
[11:57:59] 🚀 (10 / 12) Deploying file '/dir/11.txt' to '/dir (GoFTP)' ... ✅ [732 ms]
[11:58:00] 🚀 (11 / 12) Deploying file '/dir/12.txt' to '/dir (GoFTP)' ... ✅ [448 ms]
[11:58:00] 🚀 (12 / 12) Deploying file '/dir/test.sh' to '/dir (GoFTP)' ... ✅ [291 ms]

🚀 Deploying files to 'GoFTP' has been finished.

Your environment

  • Operating system: Debian 10 / stable
  • Visual Studio Code version:
Version: 1.57.0-insider
Commit: bf84ee619e0b67443d0307c04348fa575bc3c363
Date: 2021-06-07T12:39:04.297Z
Electron: 12.0.9
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Linux x64 4.19.0-16-amd64 snap
  • Extension version: 0.89.0

Related issues

On vs-deploy legacy extension

Additional comments

I'm having a look at the ftp documentation to see if the problem is coming from there, any hint would be super welcome!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant