Application Has Been Already Initialized. Runtime Error
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Rails, Capistrano, Nginx, Unicorn - Application has been already initialized (RuntimeError) up vote 4 down vote favorite Can anyone shed some light on what exactly this error refers to? I'm having trouble deploying new versions of the site. I, INFO -- : reloading config_file=[snip]/current/config/unicorn.rb I, INFO -- : Refreshing Gem list E, ERROR -- : error reloading config_file=[snip]/current/config/unicorn.rb: Application has been already initialized. (RuntimeError) E, ERROR -- : [snip]/shared/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:135:in `initialize!' E, ERROR -- : [snip]/shared/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing' E, ERROR -- : [snip]/releases/20120907085937/config/environment.rb:5:in `
Support Search GitHub This repository Watch 32 Star 625 Fork 155 thoughtbot/ember-cli-rails Code Issues 19 Pull requests 8 Projects 0 Pulse Graphs New issue Got "Application has been already initialized." when deploying to Heroku #127 Closed dinhhuydh opened this Issue Mar 25, 2015 · 8 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 7 participants dinhhuydh commented Mar 25, 2015 Hi, I installed ember-1cli-rails v0.1.13 into my existing Rails 3.2.18 project. It works http://stackoverflow.com/questions/12316302/rails-capistrano-nginx-unicorn-application-has-been-already-initialized-ru fine on local host. But when i deployed to Heroku i got the error Application has been already initialized.: Below is the log when deploying to Heroku. I tried to turn off the command MyApp::Application.initialize! in config/environment.rb but the app crashed on Heroku although it deployed successfully. Do you have any clue why it is and how can i https://github.com/thoughtbot/ember-cli-rails/issues/127 resolve it? -----> Fetching custom git buildpack... done -----> Multipack app detected =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs =====> Detected Framework: Node.js -----> Reading application state package.json... build directory... cache directory... environment variables... Node engine: unspecified Npm engine: unspecified Start mechanism: Procfile node_modules source: package.json node_modules cached: true [473/1934] NPM_CONFIG_PRODUCTION=true NODE_MODULES_CACHE=true -----> Installing binaries Resolving node version (latest stable) via semver.io... Downloading and installing node 0.12.0... Using default npm version: 2.5.1 -----> Building dependencies Restoring node modules from cache Pruning unused dependencies npm WARN package.json @ No repository field. valid Installing node modules npm WARN package.json @ No repository field. -----> Checking startup method Found Procfile -----> Finalizing build Creating runtime environment Exporting binary paths Cleaning npm artifacts Cleaning previous cache Caching results for future builds -----> Build succeeded! @ /tmp/build_8236fbf22ea851f11d6bc9907fbd15eb └── bower@1.3.12 WARNING: Node version not specified in package.json https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-ruby =====> Detected Framework: Ruby -----> Compiling Ruby/Rails -----> Using Ruby version: ruby-1.9.3 -----> Installing dependencies using 1.7.12 Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment Using aasm 3.0.23
Support Search GitHub This repository Watch 10 Star 304 Fork 59 guard/guard-spork Code Issues 5 Pull requests 1 Projects 0 Pulse Graphs https://github.com/guard/guard-spork/issues/32 New issue #