Coder Social home page Coder Social logo

Comments (6)

bkeepers avatar bkeepers commented on August 24, 2024

I would highly recommend not pulling production configs locally. In my projects, I consider .env as development only, and check it in to version control. I also use the .env file as documentation for what is needed to run the app. Here's the .env for SpeakerDeck.com

###############################################################################
# Development
# These are development-only settings and should be overridden in production.
###############################################################################

APP_HOST=speakerdeck.dev
APP_PROTOCOL=http
GITHUB_APP_KEY=x
GITHUB_APP_SECRET=x
INSTRUMENTAL_API_KEY=x
S3_ACCESS_KEY=x
S3_SECRET_ACCESS_KEY=x
S3_BUCKET=speakerdeck-dev
# Tell Resque to properly handle unix signals
TERM_CHILD=1
QUEUE=users,mailer,talks,decks,slides,search,*

### Optional development variables
# Define these in .env.development if you want to set them

# Use local file uploads instead of S3
# S3_UPLOADS=false

# Use github.dev instead of github.com
# LOCAL_GITHUB=true

###############################################################################
# Production
# These variables should also be defined in production
###############################################################################

# IMAGE_PROXY_URL
# GAUGES_ID
# GOOGLE_ANALYTICS_ID
# EXCEPTIONAL_API_KEY

from dotenv.

thibaudgg avatar thibaudgg commented on August 24, 2024

Make sense thanks, we'll forbid heroku-config usage :)

from dotenv.

twe4ked avatar twe4ked commented on August 24, 2024

Maybe there should be a warning if two env files are being loaded? I had a .env.example file and I didn't realize it was being loaded therefore overriding the settings in my .env file.

from dotenv.

bkeepers avatar bkeepers commented on August 24, 2024

Can you give me more information? It should only load .env and
.env.#{environment}.

On Saturday, June 1, 2013, Odin Dutton wrote:

Maybe there should be a warning if two env files are being loaded? I had a
.env.example file and I didn't realize it was being loaded therefore
overriding the settings in my .env file.


Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-18801337
.

from dotenv.

mdespuits avatar mdespuits commented on August 24, 2024

Any update on this?

from dotenv.

twe4ked avatar twe4ked commented on August 24, 2024

After looking at the code it doesn't seem like it could have ever loaded .env.example. Not sure what happened I must have had some other issue. Sorry.

from dotenv.

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.