LoginSignup
0

More than 5 years have passed since last update.

Railsアプリケーション作成

Last updated at Posted at 2015-12-08

開発環境

Cloud9
Ruby (2.2)
Rails (4.2)

準備

アプリの作成

$ rails new [apps]
$ cd [apps]

サーバの起動と停止

起動
$ rails s -p $PORT -b $IP
停止
Ctrl+c

Git管理

$ git init
$ git add .
$ git mv README.rdoc README.md (README.md編集)
$ git commit -m "first commit"

GitHubにリポジトリを作成

GitHubへpush

$ git remote add origin [xxx.git]
$ git push origin master

初期化

config/application.rb

config.generators do |g|
  g.stylesheets false
  g.javascripts false
  g.helper false
  g.test_framework false
end

app/assets/javascripts/application.js

削除 //= require turbolinks

app/views/layouts/application.html.erb

削除 'data-turbolinks-track' => true

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0