lucasmotta / dploy

⛔️ currently unmaintained ⛔️
http://lucasmotta.github.io/dploy/
MIT License
990 stars 90 forks source link

Error creating revision #32

Closed oskarrough closed 10 years ago

oskarrough commented 10 years ago

I'm getting the following error message when running $ dploy

Connecting to stage...
Checking revisions...

/usr/local/lib/node_modules/dploy/lib/deploy.js:321
   return console.log("Error creating revision file at:".red, ("" + revisionPa
                                                                    ^
ReferenceError: revisionPath is not defined
    at /usr/local/lib/node_modules/dploy/lib/deploy.js:321:80
    at fs.js:944:21
    at Object.oncomplete (fs.js:107:15)

My dploy.yaml looks like this:

stage:
    scheme: ftp
    host: ***
    port: 21
    user: ***
    pass: ***
    check: false
    path:
        local: build/
        remote: /
lucasmotta commented 10 years ago

I've spotted the issue and I just fixed it. It was just because the revisionPath variable was not defined inside the method, it should be looking on the global scope: this.revisionPath.

But you may get a different error now, because the error that you had happens only when the file can't be created. So we may need to investigate a bit further.

Can you update to v1.1.1 and let me know how it goes?

oskarrough commented 10 years ago

Thank you! Now I'm getting:

$ dploy
Connecting to stage...
Checking revisions...
Error creating revision file at: build/.rev { [Error: ENOENT, open 'build/.rev'] errno: 34, code: 'ENOENT', path: 'build/.rev' }
oskarrough commented 10 years ago

Tried on another, new repo and now it seems to work. Not sure what the issue was but must have beens something in my files.

lucasmotta commented 10 years ago

Usually this happens when you don't have the write permissions on that folder. To fix this you could run:

sudo chmod 777 build

But as you mentioned that it's working now, I will tick this issue as resolved :)