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

Roots 4.0.0 won't deploy -to gh-pages #700

Open
eliwilliamson opened this issue Feb 12, 2016 · 9 comments
Open

Roots 4.0.0 won't deploy -to gh-pages #700

eliwilliamson opened this issue Feb 12, 2016 · 9 comments

Comments

@eliwilliamson
Copy link

hangs and returns the following error

{ [Error: read ETIMEDOUT]
  defaultMessage: 'Internal Server Error',
  message: 'read ETIMEDOUT',
  code: '500' }
Potentially unhandled rejection [6] read ETIMEDOUT
  at Object.proto.sendError (/usr/local/lib/node_modules/roots/node_modules/ship/node_modules/github/api/v3.0.0/index.js:30:19)
  at /usr/local/lib/node_modules/roots/node_modules/ship/node_modules/github/api/v3.0.0/gitdata.js:83:29
  at ClientRequest.<anonymous> (/usr/local/lib/node_modules/roots/node_modules/ship/node_modules/github/index.js:786:17)
  at emitOne (events.js:77:13)
  at ClientRequest.emit (events.js:169:7)
  at TLSSocket.socketErrorListener (_http_client.js:259:9)
  at emitOne (events.js:77:13)
  at TLSSocket.emit (events.js:169:7)
  at emitErrorNT (net.js:1253:8)
  at doNTCallback2 (node.js:441:9)
  at process._tickCallback (node.js:355:17)

No issues in my app.coffee file as far as i can tell

axis            = require 'axis'
rupture         = require 'rupture'
sass            = require 'node-sass'
autoprefixer    = require 'autoprefixer-stylus'
js_pipeline     = require 'js-pipeline'
css_pipeline    = require 'css-pipeline'

module.exports =
  ignores: ['readme.md', '**/layout.*', '**/_*', '.gitignore', 'ship.*conf']

  extensions: [
    js_pipeline(files: 'assets/js/*.js'),
    css_pipeline(files: 'assets/css/*.scss')
  ]

  stylus:
    use: [axis(), rupture(), autoprefixer()]
    sourcemap: true

  'coffee-script':
    sourcemap: true

  jade:
    pretty: true
@janwirth
Copy link

hint: @eliwilliamson you can enclose e.g. place ``` in the lines above and below code blocks to format them accordingly.

@eliwilliamson
Copy link
Author

thank you @FranzSkuffka 👍

@jescalan
Copy link
Owner

Hey, sorry about this! It seems like ship may have fallen behind with the github api recently, perhaps. I'll look into this soon.

@eliwilliamson
Copy link
Author

thank you @Jenius - please let me know when this is resolved as i have a few projects utilizing roots at the moment. thanks again for all your (and carrot creative's) hard work!

@newswim
Copy link

newswim commented Feb 22, 2016

I talked to someone at Github recently, and confirmed that there have been some changes regarding the rate and file size of deployments. Being that Ship pushes up the entire directory, projects deploying to gh-pages will need to keep a careful eye on the size of their projects.

Hopefully, a future version might see some diffing going on so that only changes to files get pushed. Until then, I just have to be really careful about the size of my assets.

In the mean time, you can always use something like Netlify, which doesn't have a strict of restrictions (and still lets you deploy stuff for free).

@jescalan
Copy link
Owner

Thanks for the update @newswim - good info. I think what you are saying about only pushing changed assets is probably the best solution. But this would be a pretty difficult implementation, and unfortunately I don't see my company allocating time towards working on this, since we just use netlify. I'd be happy to work with someone on a PR to implement this type of thing though!

@eliwilliamson
Copy link
Author

Thank you for the update @newswim i'm excited to see this feature enhancement. In the mean time, @Jenius is there a way to optimize the compile command to work out of the box with netlify? I tried to deploy a site (and compile locally for that matter) with multiple layouts and it left me with a broken build. On netlify, I received the following error: Error: Error running command: Build script returned non-zero exit code: 127 (see my settings on netlify attached below). I used to love the out-of-the-box functionality of roots and github - the "it just works" bit really made me an advocate. I hope carrot see's this enhancement as an investment in retaining the usership who were attracted to roots for the same reason.
screen shot 2016-02-22 at 3 00 06 pm

@jescalan
Copy link
Owner

@eliwilliamson Netlify works with roots out of the box as well. Do you have roots as a dependency in your package.json file? You'll need it there for netlify to know which version you're after and to have it installed for the compile.

@eliwilliamson
Copy link
Author

that was it @Jenius - thanks for the help and hope to see gh-pages working again soon with a Ship project update 👍

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

4 participants