Bina Darabzand
Joined
Activity
Posted in Problem deploy with Capistrano
meanwhile, I added gem 'capistrano-ssh-doctor': The error that showed was the following:
:$~ bundle exec cap production ssh:doctor
[Deprecation Notice] set :scm, :git
is deprecated.
To ensure your project is compatible with future versions of Capistrano,
remove the :scm setting and instead add these lines to your Capfile after
require "capistrano/deploy"
:
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
It seems you are NOT using git as a Capistrano strategy. At the moment capistrano-ssh-doctor supports only git.
Please change scm
setting to :git
.
:$~
But the setting is what is suggested already.
Posted in Problem deploy with Capistrano
HI! Deploying with Capistrano is a continuous challenge. After overcoming a few bugs, now I am stock with the following error. Any idea? PLEASE!
INFO [1fd8e2f6] Running $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile as bdarab@xx.x.x.
DEBUG [1fd8e2f6] Command: cd /home/bdarab/myapp/releases/20200426150605 && ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.7.1" RAILS_ENV="production" RAILS_GROUPS="" ; $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile )
DEBUG [1fd8e2f6] rake aborted!
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] URI::InvalidURIError: the scheme postgresql does not accept registry part: :@ (or bad hostname?)
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/connection_adapters/connection_specification.rb:40:in initialize'
new'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations/url_config.rb:64:in
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations/url_config.rb:64:in build_url_hash'
build_config'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations/url_config.rb:69:in
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations/url_config.rb:36:in initialize'
new'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:191:in
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:191:in environment_url_config'
block in merge_db_environment_variables'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:182:in
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:179:in map'
merge_db_environment_variables'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:179:in
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:136:in build_configs'
initialize'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/database_configurations.rb:18:in
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/tasks/database_tasks.rb:159:in new'
for_each'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/tasks/database_tasks.rb:159:in
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0
DEBUG [1fd8e2f6] .2.2/lib/active_record/railties/databases.rake:28:in block (2 levels) in <main>'
block in
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/railties/databases.rake:23:in
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/railties/databases.rake:7:in
<main>'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:70:in
load'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:70:in
rescue in load'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in
load'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:319:in
block in load'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in
load_dependency'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:319:in
load'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/activerecord-6.0.2.2/lib/active_record/railtie.rb:49:in
block in class:Railtie'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:246:in
instance_exec'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:246:in
block in run_tasks_blocks'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:255:in
each'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:255:in
each_registered_block'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/railtie.rb:246:in
run_tasks_blocks'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/application.rb:509:in
block in run_tasks_blocks'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine/railties.r
DEBUG [1fd8e2f6] b:15:in
each'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine/railties.rb:15:in
each'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/application.rb:509:in
run_tasks_blocks'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/railties-6.0.2.2/lib/rails/engine.rb:459:in
load_tasks'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/releases/20200426150605/Rakefile:6:in
<top (required)>'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/myapp/shared/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in
'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/.rbenv/versions/2.7.1/bin/bundle:23:in
load'
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] /home/bdarab/.rbenv/versions/2.7.1/bin/bundle:23:in
'DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] Caused by:
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6] Bootsnap::LoadPathCache::FallbackScan:
DEBUG [1fd8e2f6]
DEBUG [1fd8e2f6]
DEBUG 1fd8e2f6
DEBUG [1fd8e2f6]
Posted in Problem installing Capistrano
Thanks. It worked!
Posted in Problem installing Capistrano
I am following Chris's "Deploy Ruby on Rails on ubuntu 18.04 ..." But I am stuck at installing Capistrano! command "cap install STAGES=production" gives me the following error :
":$~ cap install STAGES=production
(Backtrace restricted to imported tasks)
cap aborted!
LoadError: cannot load such file -- /usr/lib/ruby/vendor_ruby/Capfile
(See full trace by running task with --trace)"
Can anyone help me with this. I tried all solutions on web, without success.
thanks
Posted in Showing online users in chatroom sidebar
Hi
I am building a website ("All-In-One") with articles publishing and a chatroom. The basic is done and apparently, everything works. So, now I'm working on better styling and details. here is the repository in Github [https://github.com/bdarab/all-in-one] .
I am having a problem with the sidebar of my chatroom showing the users in the chatroom. I try many ways, "created_at", "Action Cable", "jQuery" with no avail.
I tried many tutorials online, but they were all using "Devise" or other third party gems that I have not used in my app. I have made everything from scratch, which, so far, have conflicted with my codes and break the app up.
Any suggesstions to help me through this?
Thanks.