rbenv-installer
Capistrano rbenv
rbenv-installer | Capistrano rbenv | |
---|---|---|
8 | 2 | |
340 | 201 | |
0.6% | 0.0% | |
2.7 | 0.0 | |
3 days ago | over 3 years ago | |
Shell | Ruby | |
Creative Commons Zero v1.0 Universal | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rbenv-installer
-
Step-by-Step Guide to Building LLM Applications with Ruby (Using Langchain and Qdrant)
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash
-
Rails 7: production deploy from scratch (Ubuntu 22.04 edition)
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv $ echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bashrc $ exec $SHELL $ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build $ git clone https://github.com/rbenv/rbenv-vars.git "$(rbenv root)"/plugins/rbenv-vars $ rbenv install 3.2.0 $ rbenv global 3.2.0 # Test complete install with rbenv-doctor $ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash $ ruby -v # Shows ruby version number if correctly installed $ gem install bundler # You might be prompted to update some gems, see command below $ gem update --system 3.4.6 # Check if this is recommended after bundler installation $ bundle -v # Shows bundler version number if correctly installed
-
How To Set up a Ruby on Rails 7 Development Environment on Ubuntu 22.04 LTS
# Install dependencies required to install Ruby sudo apt install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev # Install rbenv via GitHub curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash # Add ~/.rbenv/bin to $PATH echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc # Load rbenv automatically echo 'eval "$(rbenv init -)"' >> ~/.bashrc # Apply changes to current Shell sessions source ~/.bashrc
-
Rails 7 new production install: from zero to deploy (Ubuntu 20.04 edition)
$ sudo apt update; sudo apt upgrade -y $ sudo apt install rbenv $ rbenv init # Follow instructions: append 'eval "$(rbenv init -)"' to ~/.bashrc $ source ~/.bashrc # or disconnect and reconnect $ mkdir -p "$(rbenv root)"/plugins $ sudo apt install git $ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build $ git clone https://github.com/rbenv/rbenv-vars.git "$(rbenv root)"/plugins/rbenv-vars $ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash $ rbenv install 3.0.3
-
rbenv can't build ruby 2.7.4
I use rbenv-installer, it automatically installs ruby-build.
-
The Guide to Hacking Tetcore Nodes
sudo apt-get update sudo apt-get -y install git pkg-config protobuf-compiler libprotobuf-dev libssl-dev wget build-essential sudo apt install -y cmake clang libclang-dev curl libz-dev screen net-tools curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash curl -sSL https://git.io/g-install | sh -s sudo apt install curl autoconf bison libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init -)"' >> ~/.bashrc source ~/.bashrc rbenv install 2.7.2 rbenv global 2.7.2 gem install bundler sudo apt install nginx sudo apt install mysql-server sudo mysql_secure_installation sudo apt install php-fpm php-mysql sudo apt install php7.4-bcmath php7.4-bz2 php7.4-curl php7.4-dev php7.4-gd php7.4-imap php7.4-intl php7.4-json php7.4-ldap php7.4-mbstring php7.4-opcache php7.4-tidy php7.4-xml php7.4-snmp php7.4-readline php7.4-xsl php7.4-zip
- 49 Days of Ruby: Day 2 - Installing Ruby
-
Set Up Rbenv Revisited
Run rbenv-doctor script to verify installation
Capistrano rbenv
-
Rails 7 new production install: from zero to deploy (Ubuntu 20.04 edition)
set :application, "APPNAME" set :repo_url, "[email protected]:USERNAME/APPNAME.git" # Also works with non-github repos, I roll my own gitolite server set :deploy_to, "/home/deploy/#{fetch :application}" set :rbenv_prefix, '/usr/bin/rbenv exec' # Cf issue: https://github.com/capistrano/rbenv/issues/96 append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', '.bundle', 'public/system', 'public/uploads'
-
Rails Capistrano production deploy runs a wrong command line which leads to an error 'invalid option --daemon'
# Load DSL and set up stages require "capistrano/setup" # Include default deployment tasks require "capistrano/deploy" require 'capistrano/rails' require 'capistrano/bundler' require 'capistrano/rbenv' require 'capistrano/puma' install_plugin Capistrano::Puma::Daemon install_plugin Capistrano::Puma # Load the SCM plugin appropriate to your project: # # require "capistrano/scm/hg" # install_plugin Capistrano::SCM::Hg # or # require "capistrano/scm/svn" # install_plugin Capistrano::SCM::Svn # or require "capistrano/scm/git" install_plugin Capistrano::SCM::Git # Include tasks from other gems included in your Gemfile # # For documentation on these, see for example: # # https://github.com/capistrano/rvm # https://github.com/capistrano/rbenv # https://github.com/capistrano/chruby # https://github.com/capistrano/bundler # https://github.com/capistrano/rails # https://github.com/capistrano/passenger # # Load custom tasks from `lib/capistrano/tasks` if you have any defined Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } My installed gems gem "capistrano", require: false gem "capistrano-rails", require: false gem 'capistrano3-puma', require: false gem 'capistrano-rbenv'
What are some alternatives?
rbenv - Manage your app's Ruby environment
Capistrano - A deployment automation tool built on Ruby, Rake, and SSH.
Phusion Passenger - A fast and robust web server and application server for Ruby, Python and Node.js
Centurion - A mass deployment tool for Docker fleets
rbenv-default-gems - Automatically install gems every time you install a new version of Ruby
BOSH - Cloud Foundry BOSH is an open source tool chain for release engineering, deployment and lifecycle management of large scale distributed services.
HomeBrew - 🍺 The missing package manager for macOS (or Linux)
Einhorn
asdf - Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more
Dpl - Dpl (dee-pee-ell) is a deploy tool made for continuous deployment.
tetcore-node-template - A fresh FABRIC-based Tetcore node, ready for hacking 🚀
Chef - Chef Infra, a powerful automation platform that transforms infrastructure into code automating how infrastructure is configured, deployed and managed across any environment, at any scale