airbrussh | Airbrussh pretties up your SSHKit and Capistrano output
kandi X-RAY | airbrussh Summary
kandi X-RAY | airbrussh Summary
Airbrussh is a concise log formatter for Capistrano and SSHKit. It displays well-formatted, useful log output that is easy to read. Airbrussh also saves Capistrano's verbose output to a separate log file just in case you need additional details for troubleshooting. As of April 2016, Airbrussh is bundled with Capistrano 3.5, and is Capistrano's default formatter! There is nothing additional to install or enable. Continue reading to learn more about Airbrussh's features and configuration options. If you aren't yet using Capistrano 3.5 (or wish to use Airbrussh with SSHKit directly), refer to the advanced/legacy usage section for installation instructions. For more details on how exactly Airbrussh affects Capistrano's output and the reasoning behind it, check out the blog post: Introducing Airbrussh.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Truncates the width of the console .
- Apply the given options .
- Format the log message
- Returns a formatted message .
- Write a debug message
- Prints the console .
- Logs a command to the output format
- Show an exception message
- Log a command
- Strip UTF - 8 characters in ASCII
airbrussh Key Features
airbrussh Examples and Code Snippets
Community Discussions
Trending Discussions on airbrussh
QUESTION
I am attempting to deploy a ruby on rails web app to a staging server but continue to get the error: bundle stderr: /home/deploy/.rvm/rubies/ruby-2.7.0/lib/ruby/2.7.0/rubygems.rb:275:in `find_spec_for_exe': Could not find 'bundler' (1.16.1) required by your /home/deploy/apps/MYAPP/releases/20201230174246/Gemfile.lock. (Gem::GemNotFoundException)
I have attempted to install bundler on the server directly, and even after doing so it continues to fail with the same error. Full error log and deploy.rb below.
Full Log:
...ANSWER
Answered 2021-Jan-08 at 19:56I was able to get past this blocker. The ultimate issue is that I had to log into the correct shell and run gem install bundler:1.16.1.
In order to log into the bash I used this command: /bin/bash --login
Then run gem install: gem install bundler:1.16.1
QUESTION
this is my first attempt to deploy a Rails app using Capistrano. I am following the tutorial at https://ogdenstudios.xyz/blog/how-do-i-deploy-a-rails-6-app-to-amazon-ec-2/ to deploy to an AWS EC2 instance. My app is on Rails 6 and runs smoothly on localhost. I followed the tutorial but I am stock in the final step, when i run cap production deploy
y get the following error:
ANSWER
Answered 2020-Aug-07 at 23:49AWS ec2 instance require pem key to connect to it, so you must tell capistrano what key is use, I think you need add this config to your deploy file:
QUESTION
I am using rails "v6.0.2.2". I am following a gorails tutorial to deploy a rails 6 app to a digital ocean droplet using the following gems. Also note I am not using his app from the tutorial I made my own.
- gem 'capistrano', '~> 3.11'
- gem 'capistrano-rails', '~> 1.4'
- gem 'capistrano-passenger', '~> 0.2.0'
- gem 'capistrano-rbenv', '~> 2.1', '>= 2.1.4'
When I run cap production deploy
it hangs up on,
ANSWER
Answered 2020-Jun-17 at 02:18I had similar issues in the past deploying apps in small servers (5usd DO droplets, nano EC2). Those servers have little resources, and some heavy operations (installing nodejs, running bundle install) hit some problems. Try adding swap space to your droplet. https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04
QUESTION
I'm trying to deploy a Rails 6 app with Capistrano + Nginx + Puma. In the past(Rail 4 in that case) I used this tutorial https://www.digitalocean.com/community/tutorials/deploying-a-rails-app-on-ubuntu-14-04-with-capistrano-nginx-and-puma and it worked fine.
However, when I try to run cap production deploy:initial(or without the initial namespace)
I receive the following error: The deploy has failed with an error: Exception while executing on host 31.220.51.222: Exception while executing on host 31.220.51.222: corrupted hmac detected
** Invoke deploy:failed (first_time)
** Execute deploy:failed
So I'm not sure if it is a problem with NET::SSH and where it comes from, or if it is a problem that have nothing to do with this message.
Following is the last lines of capistrano.log with the -t option enabled.
...ANSWER
Answered 2020-Apr-23 at 16:31That seems to be an issue with the latest updated version of the net-ssh gem, I had the same issue, after I downgraded it works.
You find it here:
QUESTION
I'm getting a 'Connection Refused' error when attempting to deploy my rails app. This is the message I get from /var/log/nginx/error.log
ANSWER
Answered 2020-Jan-04 at 21:02There are two puma config files, in the first one you've specified a port instead of a socket. Does it affect the production environment?
QUESTION
I have a long-term-stable Rails 5.1 app deployed to Ubuntu 18.04.3 using MySQL.
I came to deploy a mundane update yesterday, and for some reason I've started getting the error,
LoadError: Error loading the 'mysql2' Active Record adapter. Missing a gem it depends on? mysql2 is not part of the bundle. Add it to your Gemfile.
Of course, the gem is already in my Gemfile (and Gemfile.lock), and its installed on the deployment machine. I had made some unrelated Gemfile changes (switched to mini_racer and added bcrypt), which required me to update to Bundler 2.0.2 over 2.0.1, but that's it.
Things I've tried:
I've tried going back to the code base before any gem changes and switched back to bundler 2.0.1, but I still hit the same problem on deployment - now it's broken, it seems to be staying broken.
I tried deploying to a entirely independent server I have set up (still on Ubuntu 18.04) and now see the same problem.
I found these apparent duplicate questions, and there the fix was to go back to an earlier version of the mysql2 gem (I tried 0.3.20 as I saw mention that 0.3.21 doesn't work), but that doesn't fix it in my case. I've tried uninstalling all other versions on the server side.
The comments around the above linked question say this will be fixed in Rails 5 (I was already using 5.1) but I went through the exercise of updating my Rails app to 5.2 to get the very latest gems, and specified mysql 0.5.2 to see if I could leap frog the versions of mysql2 with the issue, but still I hit the same problem.
My 'current' Gemfile.lock file is pasted below, but this issue started with Rails 5.1.7 and Bundler 2.0.1 and I've tried all permutations of mysql2 0.3.18, 0.3.20 and 0.5.2.
Without a fix I am unable to deploy a Rails app update, so any suggestions as to how to overcome this deployment problem much appreciated.
...ANSWER
Answered 2019-Nov-12 at 17:14Part of the problem here that mysql2 would not build on Ubuntu.
It turned out that upgrading to bundle 2.0.2, introduced a new config file in my Rails project,
QUESTION
I have a DigitalOcean Droplet with a Rails application in which I wanted to automate deploys via Pipelines and Capistrano.
This is my Capfile:
...ANSWER
Answered 2019-Jun-07 at 05:11Went back to the basics. I turned off Pipelines on Bitbucket and tried to run cap production deploy
locally while pointing to the remote server. Turns out it was indeed asking for a password when it shouldn't have, and also it was not SSHing with the correct user, so a) Added only the necessary keys to the deployUser's authorized_keys
file b) Modified deploy.rb
like so:
QUESTION
I am trying to migrate from Rails 4.2 to Rails 5.0 (running on ruby 2.3) (see plan here https://stackoverflow.com/a/38443616/7374136)
The plan is to:
- Update the
rails gem
and all dependencies. - Run tests (covering almost our whole code base) for depreciations and fix them.
- Run
rake rails:update
to update Rails - Adapt the configuration, application classes, breaking changes, ...
Nevertheless, I am blocked at the first step already, updating the rails gem
and dependencies. gem 'rails', '4.2.5'
-> gem 'rails', '~> 5.0'
running: bundle update rails
.
I faced multiple dependencies issues, which I fixed by looking for any dependencies that ultimately require rails to be less than 5, and see if those can be updated. Running:
...ANSWER
Answered 2018-Oct-25 at 12:49It sounds like you've already got the "look for a blocking dependency, then fix it" cycle under control.
The one that currently needs attention is at the very bottom:
QUESTION
I install Ruby On Rails on Ubuntu 18.04 using RVM. ruby -v : 2.4.0 rails -v : 5.1.3
I try to run "bundle install" command, I getting below error. please provide me best solution for this.
Could not verify the SSL certificate for https://rails-assets.org/. There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see 'bit.ly/ruby-ssl'. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Gemfile
...ANSWER
Answered 2018-Aug-03 at 11:29Today I had the same problem with one of our apps. We were using rails-assets-tether
gem from https://rails-assets.org. We notice that the same gem is available in the main repository (https://rubygems.org). The solution was to remove source
block from the Gemfile
.
I think that if you need those gems, then you have to wait for the certificate to be renewed (by website owners) or find an alternative source of those gems.
Update:
You can replace https://rails-assets.org with http://insecure.rails-assets.org. Please remember to switch back to https endpoint after this issue has been fixed
QUESTION
I have been deploying with Capistrano for over a year and able to rollback and now all of a sudden I cannot rollback saying it cannot find the rake asset file
ProblemCapistrano Rollback is failing complaining that it cannot find the rake asset manifest which I validated is not there. What creates this and why would it just stop being created?
I have been pulling my hair out for days over this and am at a point to figure out how to hack out that portion of the rollback and manually recompiling the assets.
Rollback console output ...ANSWER
Answered 2018-Jun-01 at 19:54I managed to shut off the default behaviour via:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install airbrussh
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page