Skip to content

cwy007/rails101

Repository files navigation

rails101

看板项目(在线预览

项目环境

➜  rails101 git:(main) ✗ rails about
About your application's environment
Rails version             5.0.7.2
Ruby version              2.6.6-p146 (x86_64-darwin19)
RubyGems version          3.0.8
Rack version              2.2.3
JavaScript Runtime        Node.js (V8)
Middleware                Rack::Sendfile, ActionDispatch::Static, ActionDispatch::Executor, ActiveSupport::Cache::Strategy::LocalCache::Middleware, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Sprockets::Rails::QuietAssets, Rails::Rack::Logger, ActionDispatch::ShowExceptions, WebConsole::Middleware, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::Migration::CheckPending, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, Rack::Head, Rack::ConditionalGet, Rack::ETag, Warden::Manager
Application root          /Users/chanweiyan/beijing/rails101
Environment               development
Database adapter          sqlite3
Database schema version   20170221075810

本地启动

git clone https://github.com/cwy007/rails101.git
cd rails101

bundle install
rails db:create
rails db:migrate
rails server

部署到 heroku

注册heroku账号

[email protected]

heroku login -i
heroku create
git push heroku main:master
heroku run rake db:migrate
heroku open

参考链接