Giter Club home page Giter Club logo

Comments (6)

rcarmo avatar rcarmo commented on June 16, 2024

This is what the ENV file is for. What is the advantage here?

from piku.

mariusa avatar mariusa commented on June 16, 2024

Can't use ENV file to keep secrets, as it's committed to git. Therefore, I'm using a separate .env.prd file with both secrets and non-secret vars. Basically, the goal is to have piku set read vars from a file, instead of only command line.

from piku.

chr15m avatar chr15m commented on June 16, 2024

Perhaps the solution is to document the technique mentioned in #302

piku config:set `cat .env.prod`

This seems about as easy to remember and type as the Heroku oneliner you posted.

from piku.

mariusa avatar mariusa commented on June 16, 2024

If that would work properly, yes. Issues:

  1. vars with spaces don't work (I'm using bash with Fedora 38). Tried with and without quotes:
 cat .env.test 
TEST1=t112


TEST2="t22 cd"

$ piku config:set `cat .env.test`
Piku remote operator.

Setting TEST2="t22 for 'app'
Error: malformed setting 'cd"'
  1. (minor) Comments don't work -- lines starting with #

Seems it would be more reliable for piku to be able to read from a file, independent of what the current shell is set to.

from piku.

github-actions avatar github-actions commented on June 16, 2024

This issue is stale because it has been open for 90 days with no activity.

from piku.

github-actions avatar github-actions commented on June 16, 2024

This issue was closed because it has been inactive for 30 days since being marked as stale.

from piku.

Related Issues (20)

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.