Code Monkey home page Code Monkey logo

Comments (7)

jodosha avatar jodosha commented on July 24, 2024 2

@cllns I think this guide should be under Guides -> Projects section.

It should include the details mentioned in the comment above ☝️ and how to use Dotenv.

from hanami.github.io.

schnittchen avatar schnittchen commented on July 24, 2024 1

@jodosha why not add ^.env.production to the initially generated .gitignore?

from hanami.github.io.

schnittchen avatar schnittchen commented on July 24, 2024 1

I noticed HANAMI_ENV is nowhere mentioned in the guides.

from hanami.github.io.

vlad-at-work avatar vlad-at-work commented on July 24, 2024

Which section do you see that fitting best under in the Guide? Dotenv is easy enough but the SERVE_STATIC_ASSETS + heroku may be tricky for some.

from hanami.github.io.

jodosha avatar jodosha commented on July 24, 2024

@cllns Please do 👍 Be sure to make clear the security concerns of having a .env file in source control.

from hanami.github.io.

florish avatar florish commented on July 24, 2024

I also had trouble finding documentation on HANAMI_ENV, took me some trial and error, especially when running database migrations for test environment.

I'd love to help documenting this, but similar to the comment by @vladdypwnz, I'm new to Hanami and not sure where a section on environment variables belongs in the Guides. If anyone could give some pointers, that would be great.

from hanami.github.io.

jodosha avatar jodosha commented on July 24, 2024

@schnittchen

why not add ^.env.production to the initially generated .gitignore?

Because .env.production isn't generated by Hanami, and because for production env it MUST NOT be used. You should set env variables via your VPS/Cloud provider.

from hanami.github.io.

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.