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

Hide ftp credentials #105

Open
mig-25 opened this issue Jan 11, 2018 · 4 comments
Open

Hide ftp credentials #105

mig-25 opened this issue Jan 11, 2018 · 4 comments

Comments

@mig-25
Copy link

mig-25 commented Jan 11, 2018

Hi,

Is there a way that I can have the ftp credentials in a separate file and read them in my gulp deploy function for vinyl-ftp and put that file in my .gitignore so I don't expose my ftp credentials when I do git-push.

@nuwen
Copy link

nuwen commented Jan 11, 2018

Try https://www.npmjs.com/package/dotenv , I've used it myself and worked like a charm.

@mig-25
Copy link
Author

mig-25 commented Jan 12, 2018 via email

@KrakerCoke
Copy link

KrakerCoke commented Jan 14, 2018

let fpt_cred = require('./ftp.json'); notice the ./ as without is recognized as a module.

@mig-25
Copy link
Author

mig-25 commented Jan 14, 2018

aha, thanks..that worked out. My process is after making some code changes, and running my gulp build where alt the content is sent to a dist folder.
Then I run the gulp deploy where all changes in my dist folder are supposed to be processed. But the only thing that happens is that the command line is showing:

CONN
CONN

and then nothing, it seems to time out after a while. And no changes are visible on the actual site.

I get the same respons even though I try to insert the credentials directly in the gulp file too.

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

No branches or pull requests

4 participants