3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

3行でRailsを動かすためだけVMを用意する Vagrantfile

3
Posted at

使い方

vagrantgitが使えるマシンで以下を実行するだけ。(Windowsで動きました)

git clone https://gist.github.com/b77a90d54ae695bf325500e1b90df118.git your_vm_name
cd your_vm_name
vagrant up

中身

QiitaはGistをペタっと貼れないので下のリンクから見てください。
Vagrantfileから起動時にprovision.shを実行するだけのやつです。
Vagrantfile (only for run Rails 5) (OS: Ubuntu 14.04, Software: rbenv, Ruby 2.4.1, Node.js, SQLite3)

参考にした記事

下のものほぼまんまです。vagrantユーザーで実行させる方法がわからずに詰んでいたから助かりました!
Vagrantのprovisioningでrbenvを使ってrubyをインストールする

シェルスクリプトをほぼ知らなかったので助かりました。
シェルスクリプト(bash)のif文とtestコマンド([])自分メモ

宣伝

フォローお願いします。 :tiger: @redshoga

3
1
0

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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?