https://www.prisma.io/ logo
Join SlackCommunities
Powered by
# prisma-whats-new
  • m

    mwickett

    08/29/2017, 3:31 PM
    Tangent, I have been using https://ngrok.com/ to setup a tunnel to my local machine when I’m developing functions. The ‘replay’ functionality is really useful, you can trigger the request (whatever that looks like for your app) and then just replay it over and over for development.
    a
    n
    • 3
    • 2
  • m

    mwickett

    08/29/2017, 3:32 PM
    @antho1404 and at that point, a single Express instance might make more sense.
  • m

    mwickett

    08/29/2017, 3:32 PM
    And then you could actually share quite a bit of code.
  • w

    wesbos

    08/29/2017, 3:33 PM
    ohhhh
  • w

    wesbos

    08/29/2017, 3:33 PM
    I dind’t know about replay
  • w

    wesbos

    08/29/2017, 3:33 PM
    we talked about ngrok on the podcast the other day
  • m

    mwickett

    08/29/2017, 3:33 PM
    It’s super nice
  • m

    mwickett

    08/29/2017, 3:33 PM
    (Love your show btw)
  • w

    wesbos

    08/29/2017, 3:33 PM
    thanks!
  • m

    mwickett

    08/29/2017, 3:34 PM
    It’s so nice for any kind of user triggered action (especially filling out a form) to only have to do it once, and then be able to hit replay
  • w

    wesbos

    08/29/2017, 3:34 PM
    man that is huge
  • w

    wesbos

    08/29/2017, 3:34 PM
    gonna try this out
  • m

    mwickett

    08/29/2017, 3:34 PM
    This is probably a question for @nilan - are there plans to improve the dev/staging/production functionality for Graphcool. I know you can clone a project, but that doesn’t quite do it.
    a
    • 2
    • 1
  • a

    antho1404

    08/29/2017, 3:37 PM
    just for the code sharing it looks possible with a config like that in the serverless.yml config file so you probably don’t need any hack for that
    Copy code
    package: 
      include: 
        - ../common
  • w

    wesbos

    08/29/2017, 3:38 PM
    ah thats good
  • m

    mwickett

    08/29/2017, 3:41 PM
    I realized that Now also supports other cloud providers - so looks like we could still use Now, but with AWS under the hood. https://zeit.co/blog/universal-now
  • w

    wesbos

    08/29/2017, 3:44 PM
    They just don’t have a wawy to deploy 15 functions at once, do they?
  • w

    wesbos

    08/29/2017, 3:44 PM
    you have to write some funky domain aliases to have them on a single domain
  • w

    wesbos

    08/29/2017, 3:44 PM
    the Now docs are really obscure about this
  • m

    mwickett

    08/29/2017, 3:44 PM
    They definitely are.
  • w

    wesbos

    08/29/2017, 3:46 PM
    I got some info here https://twitter.com/wesbos/status/893551720416071680
  • w

    wesbos

    08/29/2017, 3:46 PM
    but im still confused about now
  • m

    mwickett

    08/29/2017, 3:46 PM
    I specified a
    name
    and
    alias
    in my
    now.json
    so that I get the funky URL when I deploy (
    now
    ). I treat that like a staging URL, then to set it to production,
    now alias
    switch it over to ‘live’
  • m

    mwickett

    08/29/2017, 3:46 PM
    But not ideal to do for a whole bunch of functions
  • w

    wesbos

    08/29/2017, 3:47 PM
    oh yah - I do that for thje syntax.fm site, but I just don’t get how to deploy 15 different functions at once
  • w

    wesbos

    08/29/2017, 3:47 PM
    do I need to have 15 different package.json files?
  • m

    mwickett

    08/29/2017, 3:48 PM
    Good lord - that’s quite a variety of responses to your tweet.
  • w

    wesbos

    08/29/2017, 3:49 PM
    lol yah
  • m

    mwickett

    08/29/2017, 3:49 PM
    I think you do need a different package.json for each one. They’re all going to have different deps
  • a

    antho1404

    08/29/2017, 3:49 PM
    for your question yes you need to have different package.json file if you have any dependencies you want to load on every function
1...323324325...637Latest