GithubHelp home page GithubHelp logo

Comments (6)

demersus avatar demersus commented on July 1, 2024

Okay, I solved it. dotenv gem is required to make it work. Please add it to your gemspec, or readme.

from dotenv-deployment.

demersus avatar demersus commented on July 1, 2024

Nevermind, I spoke too soon. I have included dotenv-rails on the top of my gemfile and am still having issues.

The error occurs on rake assets:precompile

from dotenv-deployment.

spiffistan avatar spiffistan commented on July 1, 2024

I have the same problem; rails 3.2.17, ruby 2.1.2.

from dotenv-deployment.

spiffistan avatar spiffistan commented on July 1, 2024

I ended up not using dotenv-rails, but doing:

require 'dotenv'
Dotenv.load '.env'

In application.rb

and

gem 'dotenv'
gem 'dotenv-deployment'

In my Gemfile

from dotenv-deployment.

RobinClowers avatar RobinClowers commented on July 1, 2024

I had the same problem with rails: 4.1.1, ruby 2.1.1. But more importantly, I had dotenv version 0.9, which is too old to support dotenv-deployment. bundle update dotenv dotenv-deployment dotenv-rails fixed it.

The gemspec for dotenv-deployment should require dotenv 0.10 so this doesn't happen to people.

from dotenv-deployment.

bkeepers avatar bkeepers commented on July 1, 2024

I just pushed out dotenv 1.0 and dotenv-deployment 0.2.0 which removes the deprecation warnings and updates the gem dependencies.

from dotenv-deployment.

Related Issues (12)

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.