These are chat archives for jescalan/roots

27th
Aug 2015
John Peele
@johnpeele
Aug 27 2015 01:16
@jenius any thoughts on #667? i am trying to minify my stylus css using css_pipeline in my app.production.coffee, but build.css only contains [object Object]. super weird...
Nishant Menon
@nishtacular
Aug 27 2015 02:35
@biilmann Thanks mate. Netlify is a real life saver :)
Mathias Biilmann
@biilmann
Aug 27 2015 02:36
@nishtacular awesome to hear :)
Scott
@scottsandersdev
Aug 27 2015 18:24
hey guys, I keep getting the following error when using deploy -to netlify "{"code":404,"message":"Not Found"}
Potentially unhandled rejection [3] {"code":404,"message":"Not Found"} (WARNING: non-Error used)" ... any ideas?
Mathias Biilmann
@biilmann
Aug 27 2015 18:24
hey @scottsandersdev
guess that’s while using ship? what site are you trying to deploy to?
Scott
@scottsandersdev
Aug 27 2015 18:26
I'm just trying out roots for the first time, going through first video tutorial. Just created a netlify account, got Oath key and keep getting that
I'm on a work computer.. so maybe privilege issues??
Mathias Biilmann
@biilmann
Aug 27 2015 18:29
probably not related to the computer - but think you set a site name in ship - and I’m thinking that because of the way our API currently handle attempts to access a site you don’t have permissions to, you might get that error if a site with that name already exists and its not yours
Scott
@scottsandersdev
Aug 27 2015 18:32
hmm. ok. I'll look into the ship documentation a little bit more. At the end of the 1st screencast, the dev just uses an OAuth token and uses roots deploy -to netlify... tried the same thing and no dice, but sounds like I need to dive into the docs a little more.
Mathias Biilmann
@biilmann
Aug 27 2015 18:34
hmm, might be me that’s wrong, let me check
from the ship netlify deploy code, it looks like both a “name” and “access_token” is required in the config: https://github.com/carrot/ship/blob/master/lib/deployers/netlify/index.coffee#L28
Scott
@scottsandersdev
Aug 27 2015 18:37
ya, I have one in there.. tried a few different ones
Mathias Biilmann
@biilmann
Aug 27 2015 18:39
make sure it’s not already taken - i.e., there’s nothing on yourname.netlify.com
Scott
@scottsandersdev
Aug 27 2015 18:39
ohhhh... good call
hmmm... no.. not seeing anything - scottsandersdev.netlify.com
Mathias Biilmann
@biilmann
Aug 27 2015 18:41
no, then that’s not the issue
alternatively you can always try deploying directly with the netlify cli tool first
npm install netlify-cli -g
netlify deploy
Scott
@scottsandersdev
Aug 27 2015 18:45
ya, I may just do that. I liked the idea of the roots deploy, but that sounds good too. Thanks @biilmann
Scott
@scottsandersdev
Aug 27 2015 18:52
@jenius - you wouldn't have any ideas on why I'd be getting that error from ship to you?
*do you
Mathias Biilmann
@biilmann
Aug 27 2015 18:55
@scottsandersdev hmm, I can replicate that message from here when deploying to a non-existing site
looks like the ship netlify provider has started failing if the site doesn’t already exist
actually looks like a bug in the current implementation of the ship netlify provider
Mathias Biilmann
@biilmann
Aug 27 2015 19:04
sent a pull request with a fix now :)
carrot/ship#71
James Brooks
@brks
Aug 27 2015 19:17
How does Ship work with GitHub if 2FA is enabled?
I get this: Potentially unhandled rejection [4] {"message":"Must specify two-factor authentication OTP code.","documentation_url":"https://developer.github.com/v3/auth#working-with-two-factor-authentication"}
James Brooks
@brks
Aug 27 2015 19:57
Is there a guide for deploying with Ship?
Scott
@scottsandersdev
Aug 27 2015 20:11
@biilmann thanks for doing that
James Brooks
@brks
Aug 27 2015 20:14
(specifically GitHub pages)
This message was deleted
I'm getting Potentially unhandled rejection [5] {"message":"Invalid tree info","documentation_url":"https://developer.github.com/v3/git/trees/#create-a-tree"}
Scott
@scottsandersdev
Aug 27 2015 20:35
yep. that did it. I put the fix in to my index.js file and it created it on netlify. thanks man
Mathias Biilmann
@biilmann
Aug 27 2015 20:37
awesome :)
Jeff Escalante
@jescalan
Aug 27 2015 20:56
@biilmann merged and shipped. thank you!
Mathias Biilmann
@biilmann
Aug 27 2015 20:57
nice :)
Jeff Escalante
@jescalan
Aug 27 2015 20:57
@brks at the moment I don't have handling for 2fa in ship
happy to accept any contributions to this end for sure though!
For the gh pages one, could you log this as an issue?
James Brooks
@brks
Aug 27 2015 20:57
Sure thing :)
James Brooks
@brks
Aug 27 2015 21:03
@jenius Done. carrot/ship#72