一佳一

记录像1+1一样简洁的代码

导航

Ruby常用指令-持续更新

Posted on 2022-07-31 17:15  一佳一  阅读(24)  评论(0编辑  收藏  举报

service ssh restart
ssh-keygen -C "181947237@qq.com" -t rsa

rm -rf name
mkdir name

sudo apt-get update
sudo apt-install XXX

bundler update rails
rails -v
bundler install

rvm install ruby版本
rvm env
rvm list
rvm use 2.7.2
rvm remove 2.0.0
sed -i 's!ruby.taobao.org/mirrors/ruby!cache.ruby-china.com/pub/ruby!' $rvm_path/config/db
bundle config mirror.https://rubygems.org https://gems.ruby-china.com

gem source -l
gem install do_sqlite3 -v '0.10.17'
gem install rails --version 4.2.3
gem install rails
gem install postgres-pr

sudo apt-get install libpq-dev
gem install pg -- --with-pg-lib=/usr/lib

gem install sequel
gem install sinatra
gem install padrino
gem install puma
gem install liquify -v '2.1.2'

gem uninstal

gem sources --remove https://rubygems.org/
gem sources -a https://gems.ruby-china.com/
gem sources -l

bundler
padrino s
rails s
ruby app.rb -s Puma