AWDR 阅读笔记 – 1.建立 RoR 工程

Agile Web Development with Rails 5.1 阅读笔记系列第 1 篇,建立 RoR 工程。

作 Ruby 开发,除了使用本地 Linux 环境,还可以选择诸如 Cloud9Coder 等云 IDE,或者是采用 rails-dev-box 虚拟环境,现采用本地直接部署,作为学习用途。

环境

$ gem -v
2.7.6
$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]

国内 gem 镜像

$ gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
$ bundle config mirror.https://rubygems.org https://gems.ruby-china.com

部署

$ rails new depot

参考:

  1. Agile Web Development with Rails 5.1 . Sam Ruby. David Bryant Copeland. with Dave Thomas. 2017 The Pragmatic Programmers, LLC.
  2. https://gems.ruby-china.com/

作者: YanWen

Web 开发者

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s