-
-
Save k1LoW/1cb5d9bba21fea7e31ea9bb52dbf6817 to your computer and use it in GitHub Desktop.
hoscon201807
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xcode-select --install | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install readline ruby-build rbenv | |
brew install mysql # MySQLのインストール | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile | |
source ~/.bash_profile | |
rbenv install 2.5.1 | |
rbenv global 2.5.1 | |
ruby -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install git | |
git config --global user.name "[名前を入れてください]" | |
git config --global user.email "[メールアドレスを入れてください]" | |
git --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install bundler --no-document | |
gem install rails --no-document |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &default | |
adapter: sqlite3 | |
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> | |
timeout: 5000 | |
development: | |
<<: *default | |
database: db/development.sqlite3 | |
test: | |
<<: *default | |
database: db/test.sqlite3 | |
production: | |
<<: *default | |
adapter: mysql2 | |
database: [マネクラのプロジェクト画面を確認] | |
username: [マネクラのプロジェクト画面を確認] | |
password: [メモしたデータベースのパスワード] | |
host: [マネクラのプロジェクト画面を確認] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'mysql2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails generate scaffold idea name:string description:text picture:string | |
rails db:migrate | |
rails server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EDITOR='atom --wait' bin/rails credentials:edit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install -m 0700 -d ~/.ssh # ディレクトリの作成 | |
ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa # 公開鍵と秘密鍵を作成 | |
cat ~/.ssh/id_rsa.pub | pbcopy # 公開鍵をクリップボードにコピー |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git add -f config/master.key | |
git commit -m 'Add master.key THIS IS BAD WAY' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git add . | |
git commit -m 'Rails public server enabled' |
Author
k1LoW
commented
Jul 17, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment