Pibilog

A variety of daily

Build a development environment

rail
Fotoworkshop4You / Pixabay
https://pixabay.com/photo-1555348

Let's make a note of what we did。
Ruby on Rails development environment? Building on。
My computer is OSX El Capitan、Version 10.11.6?。
This page of Samurai Engineer JukuI was allowed to refer to。
VirtualBox、Install CentOS with Vagrant、Then rbenv into a virtual environment、ruby-build plugin、Ruby、Bundler、I guess it means installing Ruby on Rails。

The rest、When installing Ruby on Rails、Looks like you need to edit the Vagrantfile。
This blog for ProMemoGramI was allowed to refer to。
By default, it seems that the shared folder synchronizes only one direction from the host side to the virtual environment。
So to synchronize in both directions、For example, it seems that you can edit the Vagrantfile as follows。

config.vm.synced_folder "/Users/ユーザー名/vagrant/centos7", "/vagrant", type: "virtualbox"

When you first log in to CentOS on the virtual environment、I'm in the /home/vagrant folder、/There is a Vagrantfile in the vagrant folder or、I was confused as to which one to create an app folder in and install Ruby on Rails。 From setting the folder to be shared with the Vagrantfile、It's okay either way.。 The sshfs connection that was listed later on the former page became Disconnected and did not work, but、It's okay because you have a shared folder。 So today's work was finished.。

Related Youtube

Leave a Reply

That email address is not。
May take a comment will be approved。