$ bundle exec rails console
Warning: You're using Rubygems 1.8.23 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.
Running via Spring preloader in process 23438
Loading development environment (Rails 4.2.9)
irb: warn: can't alias context from irb_context.
![]() | Miroslav Schlossberg Code for Croatia |
$ bundle exec rails console RAILS_ENV=production
Warning: You're using Rubygems 1.8.23 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.
config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
* development - set it to false
* test - set it to false (unless you use a tool that preloads your test environment)
* production - set it to true
/home/alaveteli/bundle/ruby/1.9.1/gems/activerecord-4.2.9/lib/active_record/connection_adapters/connection_specification.rb:248:in `resolve_symbol_connection': 'RAILS_ENV=production' database is not configured. Available: ["default", "development", "test", "production"] (ActiveRecord::AdapterNotSpecified)
from /home/alaveteli/bundle/ruby/1.9.1/gems/activerecord-4.2.9/lib/active_record/connection_adapters/connection_specification.rb:211:in `resolve_connection'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activerecord-4.2.9/lib/active_record/connection_adapters/connection_specification.rb:139:in `resolve'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activerecord-4.2.9/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activerecord-4.2.9/lib/active_record/connection_handling.rb:50:in `establish_connection'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activerecord-4.2.9/lib/active_record/railtie.rb:122:in `block (2 levels) in <class:Railtie>'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activesupport-4.2.9/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activesupport-4.2.9/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activesupport-4.2.9/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activesupport-4.2.9/lib/active_support/lazy_load_hooks.rb:27:in `each'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activesupport-4.2.9/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activerecord-4.2.9/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
from /home/alaveteli/bundle/ruby/1.9.1/gems/railties-4.2.9/lib/rails/initializable.rb:30:in `instance_exec'
from /home/alaveteli/bundle/ruby/1.9.1/gems/railties-4.2.9/lib/rails/initializable.rb:30:in `run'
from /home/alaveteli/bundle/ruby/1.9.1/gems/railties-4.2.9/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
from /usr/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /usr/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
from /usr/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
from /usr/lib/ruby/1.9.1/tsort.rb:180:in `each'
from /usr/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
from /usr/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
from /home/alaveteli/bundle/ruby/1.9.1/gems/railties-4.2.9/lib/rails/initializable.rb:54:in `run_initializers'
from /home/alaveteli/bundle/ruby/1.9.1/gems/railties-4.2.9/lib/rails/application.rb:352:in `initialize!'
from /var/www/imamopravoznati.org/alaveteli/config/environment.rb:6:in `<top (required)>'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:274:in `require'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:274:in `block in require'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:240:in `load_dependency'
from /home/alaveteli/bundle/ruby/1.9.1/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:274:in `require'
from /home/alaveteli/bundle/ruby/1.9.1/gems/spring-2.0.2/lib/spring/application.rb:102:in `preload'
from /home/alaveteli/bundle/ruby/1.9.1/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
from /home/alaveteli/bundle/ruby/1.9.1/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
from /home/alaveteli/bundle/ruby/1.9.1/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
from /home/alaveteli/bundle/ruby/1.9.1/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
from /home/alaveteli/bundle/ruby/1.9.1/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from -e:1:in `<main>'
~/alaveteli/config/environments$ ls -al
total 28
drwxr-xr-x 2 alaveteli alaveteli 4096 Oct 5 07:33 .
drwxr-xr-x 5 alaveteli alaveteli 4096 Oct 13 06:27 ..
-rw-r--r-- 1 alaveteli alaveteli 2557 Oct 5 07:33 development.rb
-rw-r--r-- 1 alaveteli alaveteli 4717 Oct 5 07:33 production.rb
-rw-r--r-- 1 alaveteli alaveteli 954 Oct 5 07:33 staging.rb
-rw-r--r-- 1 alaveteli alaveteli 2290 Oct 5 07:33 test.rb
![]() | Miroslav Schlossberg Code for Croatia |
alaveteli@ImamoPravoZnati-v2:~/alaveteli$ bundle exec rails console
Warning: You're using Rubygems 1.8.23 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.
Running via Spring preloader in process 24336
Loading development environment (Rails 4.2.9)
irb: warn: can't alias context from irb_context.
irb(main):001:0>
Version numbers
Alaveteli version: 0.30.0.0
Alaveteli branch: release/0.30.0.0
Alaveteli commit: ce785e903962c75f369b0c18c4d0fefc1f327972
RUBY_VERSION 1.9.3
Rails::VERSION::STRING 4.2.9
Xapian::version_string 1.2.21
Configuration
Rails env: production
Rails root: /var/www/imamopravoznati.org/alaveteli
![]() | Miroslav Schlossberg Code for Croatia |
--
You received this message because you are subscribed to the Google Groups "Alaveteli Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alaveteli-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/064e7d24-f586-4daf-8c8e-3f8bef757208%40googlegroups.com.
$ sudo -u alaveteli RAILS_ENV=production \
> /var/www/imamopravoznati.org/alaveteli/script/rails-post-deploy
$ sudo -u alaveteli bundle exec rails console
Loading production environment (Rails 4.2.9)
irb(main):001:0>
![]() | Miroslav Schlossberg Code for Croatia |