Coder Social home page Coder Social logo

Environment variables? about porter HOT 6 CLOSED

anystack-sh avatar anystack-sh commented on May 28, 2024
Environment variables?

from porter.

Comments (6)

PhiloNL avatar PhiloNL commented on May 28, 2024

Hmm, maybe try export SANDBOX=true && ./router -c router.yaml -s supergraph.graphql

from porter.

SteveEdson avatar SteveEdson commented on May 28, 2024

Just get the error can't find command 'export' unfortunately

from porter.

PhiloNL avatar PhiloNL commented on May 28, 2024

@SteveEdson thanks for letting me know, I've added a new option in v0.0.10 to override environment variables:

  - name: Vite
    directory: Users/developer/anystack/front-end
    command: npm run dev
    environment:
        - FOO=BAR

Let me know if that works

from porter.

SteveEdson avatar SteveEdson commented on May 28, 2024

Thanks, porter add gives me this error now though:

In Collection.php line 821:
                                                                 
  foreach() argument must be of type array|object, string given  

Tried setting it like this too:

environment:
  FOO: "BAR"

But same error

from porter.

PhiloNL avatar PhiloNL commented on May 28, 2024

Whoops, made an error in the yaml syntax. Should be fixed in v0.0.11

from porter.

SteveEdson avatar SteveEdson commented on May 28, 2024

Perfect! Thanks for the help, appreciate it :)

from porter.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.