Skip to content

Instantly share code, notes, and snippets.

@niceonionslice
Created September 24, 2017 13:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niceonionslice/9df0df467a95952209f0664c4de22d6d to your computer and use it in GitHub Desktop.
Save niceonionslice/9df0df467a95952209f0664c4de22d6d to your computer and use it in GitHub Desktop.

measurement-for-3-size

プロジェクト作成手順

フォルダ作成

$ mkdir measurement-for-3-size; and cd measurement-for-3-size

.git作成

.git/configに以下を追加する。 これはgithubのサブアカウントでアクセスするための設定とか

[user]
  email = #{e-mail}
  name = #{user}
[color]
  ui = true

.gitignore作成

プロジェクト構築手順をまとめたsetup.mdは一旦プロジェクトからはずす。

setup.md

githubにpush

$ git remote add origin git@github-private:niceonionslice/measurement-for-3-size.git
$ git push -u origin master
$ gibo macOS rails > .gitignore

プロジェクト作成

1. setup.mdを作成

setup.mdファイルを作成してgitコマンドでファイルをaddする。

2. .ruby_versionファイルを作成

$ rbenv local 2.2.4

3. Gemfileを作成

$ rbenv exec bundle init

ファイル内容を書き換える

# gem "rails"
gem 'rails', '~> 4.2', '>= 4.2.9'

4. bundle インストール

$ rbenv exec bundle install --path=./vendor/bundle

5. RubyonRailsプロジェクトの作成

$ rbenv exec bundle exec rails new . --database=mysql -T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment