体验Rails
尴尬了,建立专案的时候停住了,但都不知道是不是课程里说的卡住了

好吧,它自己又动了,进入到了fetching阶段,原来是我急了慌了……

出错
Ruby版本要求在2.4.0以上

更新Ruby到最新稳定版2.6.3 by
rvm install 2.6.3
设置2.6.3为预设版本 by
rvm use 2.6.3 --default
删除旧版本的Ruby by
$ rvm uninstall 1.8.6
【懒人最爱】其实可以一键安装带有最新稳定版的Ruby & Rails的RVM by
\curl -sSL https://get.rvm.io | bash -s stable --rails
这样就把安装RVM、Ruby、Rails三个漫长的工作,合为一个指令来完成了(亲测爽翻!)
According to https://rvm.io/ at 2019-08-14

再次Check Ruby和Rails的版本儿

继续建立专案咯~~~
跑完后,进入专案,显示:

啊啊啊啊,为什么需要2.3.1版本儿的Ruby呢???
把专案的名字换了一下,换成pabitel_app就正常了,什么鬼……
(我差点儿就又安装了2.3.1版本儿的Ruby)
耶~~~搞定!!

然后速度玩儿了一下留言板……脑残式码指令,然后就建好了……
立马留言中二了一下,哈哈……



【感悟】人无法用未知解释未知,无脑式follow就是建立已知的过程,这个过程不需要解释,也不能过早的掉入解释中,否则会把大脑搞糊涂,积累有趣的体验从而成为内化的解释素材可能更重要……
体验Git
这个部分还蛮通畅,就是没太明白Git Comit部分的指令,一路懵过来……
上传至Heroku
【懒人最爱】安装Heroku可直接使用Homebrew指令
brew tap heroku/brew && brew install heroku
(According to https://devcenter.heroku.com/articles/heroku-cli)
迁移数据库时出现超时问题,重试成功,未查到原因
今日ORID

网友评论