Live data from Hacker News

Netlify Dev

netlify.com

21–30 of 237 posts

Re: Netlify Dev

#21
post #10

My friends have used netlify for dev deployments, and it worked out pretty well as a hosted solution. For this product I'm wondering what does this give over, running setup and deployment scripts locally? Or running a VM connected to CI server that would run test and production deployment?

For one, there is nothing to configure with Netlify Dev.

But the configuration needs to come from somewhere, like existing netlify config?

I noticed that one of the features mentioned is this --

> Netlify Dev automatically detects common tools like Gatsby, Hugo, Jekyll, React Static, Eleventy, and more, providing a zero-config setup for your local dev server.

If your framework supported by netlify, just plop the projects with no configuration.

I found one or two Python projects supported by netlify -- https://www.netlify.com/tags/python/

It looks like Netlify caters to frontend development, as far as backend, mostly static site generators supported.

I would try this out for Vue.js

Re: Netlify Dev

#22
post #14
post #7

Earlier quoted context omitted.

Yes, I have the feeling the whole "replicate locally" goes in the wrong direction. You're just lying to yourself when saying local is the same as cloud...

If your cloud edge functions only (completely stateless functions or containers run without any directly attached data stores) then you can pretty reliably simulate it locally - you can configure your own dev machine as an edge node. Stuff like Lambda@Edge, Cloudflare Workers etc all have very strictly defined APIs that are executed on V8 (modified for security, but not enough to be incompatible). If you run a pure f…

Sure if you doing unit-tests/one function that works.

But as far as I know, unit tests aren't the place to be in terms of serverless testing.

Integration and E2E tests are much more important and that's where the whole "run locally" stuff breaks down rather quickly.

Re: Netlify Dev

#23
I use netlify for about 6 out of 7 sites I manage for myself and family. The last one I have on linode purely out of laziness.

Netlify absolutely kills it with their entire suite of offerings. I highly highly recommend people try it out if they haven't yet.

Re: Netlify Dev

#24
post #7

Earlier quoted context omitted.

Yes, I have the feeling the whole "replicate locally" goes in the wrong direction. You're just lying to yourself when saying local is the same as cloud...

Why? They're just computers, what makes your local machine that different from a Netlify server?

Because functions are small self-contained stateless bits of code, they don't need much testing by themselves.

You need to test them with the services they are using and replicating your whole cloud infrastructure locally is nearly impossible.

Re: Netlify Dev

#26
I part run a non-profit site on Netlify and the experience is pretty great. The real killer bit for me has been their GitHub integration where they will render a preview build of any PRs put up to the site.

Re: Netlify Dev

#27
Netlify service is ridiculously awesome. I host my site there for free and had some cert errors [1]. I messaged support and they had it fixed in less than 48 hrs. I seriously recommend others to use them rather than using Medium for their own content.

[1] www.powu3.com

Re: Netlify Dev

#28
Looks super cool and super happy with Netlify hosting.

I just gave it a spin though and got this:

  Netlify Dev ◈ Starting Netlify Dev...
  Netlify Dev ◈ Overriding dist with setting derived from netlify.toml [dev] block:  null
  Netlify Dev ◈ No dev server detected, using simple static server
  Netlify Dev ◈ Unable to determine public folder for the dev server. 
  Setup a netlify.toml file with a [dev] section to specify your dev server settings.
But the blog post and the TOML reference (https://www.netlify.com/docs/netlify-toml-reference/) don't seem to include details on what to include in the [dev] section of the TOML file to get this to work.

Anyone have this tool working locally?

Post reply on HN