Comments (10)
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.
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.
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.
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:in
open'
/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:in
load'
/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:in
load_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:in
each'
/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:in
run'
/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:in
each'
/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:in
initialize!'
/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:in
method_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:in
require'
/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:in
new_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:in
require'
/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:in
initialize_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:in
execute'
/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:in
execute'
/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:in
synchronize'
/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:in
invoke_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:in
invoke_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:in
synchronize'
/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:in
invoke_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:in
invoke_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:in
synchronize'
/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:in
invoke'
/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:in
top_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:in
top_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:in
top_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:in
standard_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:in
load'
/usr/ruby1.8.7/bin/rake:19
Tasks: TOP => db:setup => db:schema:load => environment
from citizenry.
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.
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.
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.
Oh okay. I appreciate the explanation.
BTW, I was in Portland this past weekend....cool city you've got there. :)
from citizenry.
Ahhh...makes perfect sense. Ran into the same problem...thanks for helping to walk through it and for providing a solution.
from citizenry.
that's really helpful
from citizenry.
Related Issues (20)
- Rearrange i18n files to make en and fr locales have things in the same order
- Look into i18n for routes
- Upgrade mogli
- Pagination's "Show all" should work
- Companies (and presumably other things) are duplicated in tag searches when they have the same tag both in 'tags' and 'technologies'
- Non-square images should be scaled, not cropped
- Unable to retrieve format-specific version of a resource (e.g. /people/1471.json) HOT 2
- /people/1234.json (or .xml) doesn't work HOT 2
- vagrant can't run apt-get HOT 1
- display live feed / content stream from site users' associated twitter accounts
- Duplicate results appearing in tag search HOT 1
- License? HOT 4
- Documentation for Twitter and other authorization settings HOT 6
- Searching for "igal" causes 500 error HOT 2
- is this dead? HOT 4
- 500 response on /auth/twitter/callback HOT 4
- Search for any term seems to 500 HOT 2
- Update ePDX deployment system for new server
- Failure to sign in using existing Google OpenID authentication
- Search seems broken HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citizenry.