Live data from Hacker News

Now: realtime Node.js deployments

zeit.co

41–50 of 121 posts

Re: Now: realtime Node.js deployments

#41

> NOTE: npm start has to listen on a port. It can be any port! Does this mean you forward port 80/443 to whatever port the app is listening on, or I can have my app listen on random external ports?

Yes. Just do `app.listen()` or pick `3000` or `8080` or `80` or…

Re: Now: realtime Node.js deployments

#42
post #40

Earlier quoted context omitted.

Also, Openshift is only supporting Node O.10 right now...

Valid point, but there is a fairly robust open source community that provides many more packages (called cartridges in openshift lingo) than are officially supported [0] [0] https://github.com/icflorescu/openshift-cartridge-nodejs

Ah cool. Kind of like a Heroku build pack. Still more effort than 'just deploy' though.

Re: Now: realtime Node.js deployments

#45
post #3

CEO of https://zeit.co here! Happy to answer any questions throughout the day :)

A couple questions:

(1) I notice that your pricing chart mentions storage. I'm wondering what that typically would consist of? Only thing I can think of are static assets as I imagine a codebase — even with a million npm module dependencies — wouldn't come close to 1GB let alone 100.

(2) Is it possible to back your apps with a database/datastore? Say I want to use MongoDB with my app. Would I need to purchase a third party service and set the MONGO_URL in the env? Are there any plans to offer database services as add-ons?

Re: Now: realtime Node.js deployments

#46
post #38
post #26

Earlier quoted context omitted.

> Every time you run `now` it's as if you had installed from scratch (including semver invalidations like ^ or ~). The focus is on reproducibility. This is very confusing to me as these seem to be contradictory statements. Installing "from scratch" (I take this to mean, as if node_modules is an empty folder) is not a reproducible action, as all it takes is one sub-dependency releasing a new version to change your ins…

In order for you and your team to never rely on transient local state (either in the cloud or your own computer), we "start from scratch". However, our process of starting from scratch is actually faster than running `npm install` on your own computer in many cases. As an example, I've found myself getting into the habit of using `now` instead of `localhost`.

This doesn't address the poster's issue: If you reinstall every time, the results won't always be the same (not that I personally hold this as a big issue, I'd consider it on the programmer to freeze their package.json)

Re: Now: realtime Node.js deployments

#48
post #3

CEO of https://zeit.co here! Happy to answer any questions throughout the day :)

Any chance of some clarification around the limits of the free tier?

> 20 FREE deploys per month

So I can only run the `now` command 20 times each month? What are you using to track how many times I've run it already? IP? NPM username? Package name?

>1MB size limit per file

Is this at deployment time or is this also enforced at runtime? If I deploy a 900kb sqlite file, then add 200kb of records to it at runtime, what's going to happen?

> Perfect for open-source demos, classrooms, tutorials & testing.

Are 20 deploys per month really enough to use in a teaching context? I'd love to use this tool in the web tech module I teach at my university, but I think most students would burn through 20 deploys in a week, let alone a month. Is there any chance this limit could be re-thought for teaching purposes?

I wouldn't mind if some of the other restrictions were changed, but free tiers that halt development til the start of next month don't sound great for learning to me.

Re: Now: realtime Node.js deployments

#49
post #32
post #14

Earlier quoted context omitted.

This is very cool. I'm excited to use this in my next project. I like the zero setup, no fuss, secure by default features. I guess 4 more questions: 1) Does "Dynamic Realtime Scaling" mean you spin up more clusters and do load balancing automatically? 2) Can your $15/month cost cover this? Or is that what the 50GB bandwidth cap is for? 3) The nature of this service means we need to use a DB service like mLab (mongoLa…

Protip: put an extra new line between items or HN eats your line breaks :(

fixed, thx
Post reply on HN