GithubHelp home page GithubHelp logo

Comments (10)

aeschright avatar aeschright commented on July 17, 2024

You'll need to copy /config/settings-sample.yml to /config/settings.yml if you haven't already, and update it with the list of services and API keys you wish to use. If you want to start with just one, Twitter is a good choice.

from citizenry.

shenoa avatar shenoa commented on July 17, 2024

I did that actually, and everything was working locally with the settings.yml file correctly located in the config directory. The error message shows it missing in the app folder though. As far as I can tell it doesn't belong in that folder. Plus, why would it be working correctly on my local machine, but breaking on heroku?

from citizenry.

aeschright avatar aeschright commented on July 17, 2024

Can you run the rake task with --trace so we can see where Heroku is hitting that error? It does seem odd that it's trying to access a /app/config path.

from citizenry.

shenoa avatar shenoa commented on July 17, 2024

Thanks for walking me through this. I'm new, with a more experienced friend helping out. Here's the --trace:

** Invoke db:setup (first_time)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create
ebfohepbqp already exists
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment

Sphinx cannot be found on your system. You may need to configure the following
settings in your config/sphinx.yml file:

  • bin_path
  • searchd_binary_name
  • indexer_binary_name

For more information, read the documentation:
http://freelancing-god.github.com/ts/en/advanced_config.html

rake aborted!
No such file or directory - /app/config/settings.yml
/usr/ruby1.8.7/lib/ruby/1.8/yaml.rb:143:in initialize' /usr/ruby1.8.7/lib/ruby/1.8/yaml.rb:143:inopen'
/usr/ruby1.8.7/lib/ruby/1.8/yaml.rb:143:in load_file' /app/config/initializers/_load_settings.rb:2 /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:235:inload'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:235:in load' /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:227:inload_dependency'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:235:in load' /app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/engine.rb:201 /app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/engine.rb:200:ineach'
/app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/engine.rb:200
/app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:25:in instance_exec' /app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:25:inrun'
/app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:50:in run_initializers' /app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:49:ineach'
/app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/initializable.rb:49:in run_initializers' /app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/application.rb:134:ininitialize!'
/app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in send' /app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:inmethod_missing'
/app/config/environment.rb:5
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in require' /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:inrequire'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in load_dependency' /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:innew_constants_in'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:in load_dependency' /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:inrequire'
/app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/application.rb:103:in require_environment!' /app/.bundle/gems/ruby/1.8/gems/railties-3.0.9/lib/rails/application.rb:218:ininitialize_tasks'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in call' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:inexecute'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in each' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:inexecute'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:158:in invoke_with_call_chain' /usr/ruby1.8.7/lib/ruby/1.8/monitor.rb:242:insynchronize'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in invoke_with_call_chain' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:176:ininvoke_prerequisites'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:in each' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:ininvoke_prerequisites'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:157:in invoke_with_call_chain' /usr/ruby1.8.7/lib/ruby/1.8/monitor.rb:242:insynchronize'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in invoke_with_call_chain' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:176:ininvoke_prerequisites'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:in each' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:174:ininvoke_prerequisites'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:157:in invoke_with_call_chain' /usr/ruby1.8.7/lib/ruby/1.8/monitor.rb:242:insynchronize'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in invoke_with_call_chain' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/task.rb:144:ininvoke'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/application.rb:112:in invoke_task' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:intop_level'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in each' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:intop_level'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in standard_exception_handling' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:intop_level'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in run' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:instandard_exception_handling'
/app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in run' /app/.bundle/gems/ruby/1.8/gems/rake-0.9.2/bin/rake:32 /usr/ruby1.8.7/bin/rake:19:inload'
/usr/ruby1.8.7/bin/rake:19
Tasks: TOP => db:setup => db:schema:load => environment

from citizenry.

reidab avatar reidab commented on July 17, 2024

One thought, which you've possibly already tried — we've included config/settings.yml in our .gitignore file so I'm guessing that it isn't getting pushed to heroku at all. Try removing that line from .gitignore, adding your settings.yml to git and then pushing to heroku again. (Possibly doing all of this in a branch to make it easier to merge in changes from upstream.)

from citizenry.

shenoa avatar shenoa commented on July 17, 2024

Thanks reidab! That did the trick. If you care to elaborate on why you chose to set up the .gitignore file in that manner, I'd like to hear about it. I'd guess though that this is not the venue for that discussion, so I'll Comment and Close.

from citizenry.

reidab avatar reidab commented on July 17, 2024

I'll comment here anyway :)

Since that fill will be different for every different instance of citizenry, I didn't want to bundle the settings.yml file with the source that people would be checking out from GitHub. I use version control to deploy all of the code for the app, but I copy that file over to my server manually for epdx.org. Since heroku doesn't allow you to copy files to their hosts outside of version control, you have to check it in to work on heroku.

That said, I'm trying to figure out ways to make this more intuitive for folks working both on heroku and elsewhere, so I'll be sure to add this to the documentation and such. :)

from citizenry.

shenoa avatar shenoa commented on July 17, 2024

Oh okay. I appreciate the explanation.

BTW, I was in Portland this past weekend....cool city you've got there. :)

from citizenry.

conraddecker avatar conraddecker commented on July 17, 2024

Ahhh...makes perfect sense. Ran into the same problem...thanks for helping to walk through it and for providing a solution.

from citizenry.

tengcong avatar tengcong commented on July 17, 2024

that's really helpful

from citizenry.

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.