Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generatedFiles not work #260

Closed
patrick-abc opened this issue Nov 27, 2018 · 4 comments
Closed

generatedFiles not work #260

patrick-abc opened this issue Nov 27, 2018 · 4 comments

Comments

@patrick-abc
Copy link

I have defined

"port": 22,
"secure": true,
"protocol": "sftp",
"uploadOnSave": true,
"passive": false,
"debug": true,
"privateKeyPath": null,
"passphrase": null,
"agent": null,
"allow": [],
"ignore": [
"\.vscode",
"\.git",
"\.DS_Store",
"\assets"
],
"generatedFiles": {
"uploadOnSave": true,
"extensionsToInclude": [".css"],
"path": "/"
}

My .scss files are in the folder /assets. The grunt process generate the .css file in Root.
When I change a .scss file in /assets the file (root of the project)/style.css was changed but ftp-sync was not detecting it (and it was not uploading).

@NajSurf
Copy link
Collaborator

NajSurf commented Nov 27, 2018

I think this is because you have /assets in your ignore array. Try deleting that line and update me if it worked

@patrick-abc
Copy link
Author

patrick-abc commented Nov 27, 2018

Nope. I changed to:

    "port": 22,
    "secure": true,
    "protocol": "sftp",
    "uploadOnSave": true,
    "passive": false,
    "debug": true,
    "privateKeyPath": null,
    "passphrase": null,
    "agent": null,
    "allow": [],
    "ignore": [
        "\\.vscode",
        "\\.git",
        "\\.DS_Store",
    ],
    "generatedFiles": {
        "uploadOnSave": true,
        "extensionsToInclude": [".css"],
        "path": "/"
    }

but no effect. Grunt was generate a new style.css in the Root of project folder, but this .css was not loading up to FTP.

@NajSurf
Copy link
Collaborator

NajSurf commented Dec 7, 2018

Check the new version on the marketplace. It should fix your problem. Also check #269 for more specific information.

@NajSurf NajSurf closed this as completed Dec 11, 2018
@patrick-abc
Copy link
Author

Sorry my late reply (year-end stress). Actually version for me still does not work. I have added the \assets folder to ignore list. Grunt generate the file in assets, in config.rb I move the file to the root of project. Could the mistake be there?
Side remark: I think with the new plugin version the ftp upload was not as stable as the older one. It happens every now and then; statusbar was write "..was uploading" and doesn't close. When I save the file another time, the upload works.

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

No branches or pull requests

2 participants