René Rodriguez Clavijo


4,050 Experience
33 Lessons Completed
1 Question Solved


Posted in Deploy Ubuntu 22.04 Jammy Jellyfish Discussion

Hi! I would like know if someone has face this error during ruby installation:

BUILD FAILED (Ubuntu 20.04 using ruby-build 20230512)
Inspect or clean up the working tree at /tmp/ruby-build.20230519034003.98334.Zg9WWu
Results logged to /tmp/ruby-build.20230519034003.98334.log

Last 10 log lines:
95% [959/999] shape.c
96% [960/999] signal.c
96% [961/999] siphash.c
96% [962/999] sparc.c
96% [963/999] sprintf.c
96% [964/999] st.c
96% [965/999] strftime.c
96% [966/999] string.c
make: *** [ rdoc] Error 137

I tried with Ubuntu 22.04 and with different ruby versions but I failed.
Do you have any clue to solve this issue? would be awesome!

Posted in How do I share my master.key with capistrano deployment

After following the guide Deploy Ruby on Rails on ubuntu 18.04 I still have several problems with the app. Shows me the same error when rails can't find master.key and I'm not sure how .rb-envs works or how to share my master.key with deployment.
This is the error:

DEBUG [30e1aa26]       NoMethodError: undefined method `[]' for nil:NilClass
DEBUG [30e1aa26]       /home/ubuntu/oficinas/releases/20210907184538/config/database.yml:16:in `<main>'

and this is my database.yml

default: &default
  adapter: postgresql
  host: #localhost
  port: 5432
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  timeout: 5000

  <<: *default
  username: <%= Rails.application.credentials.db[:nombre_usuario] %>
  password: <%= Rails.application.credentials.db[:password] %>
  database: oficinas-desarrollo

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
  <<: *default
  database: oficinas-pruebas

  <<: *default
  username: <%= Rails.application.credentials.db_produccion[:nombre_usuario] %>
  password: <%= Rails.application.credentials.db_produccion[:password] %>
  database: oficinas-produccion

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.