Added rails project setup to setup.md
This commit is contained in:
parent
54328937b7
commit
82ba3a6afb
|
@ -10,6 +10,8 @@ personal computer. Since Vagrant works with virtual machines, there will be no
|
||||||
"cruft" left over if you ever wish to stop (no extraneous software, files, etc)
|
"cruft" left over if you ever wish to stop (no extraneous software, files, etc)
|
||||||
as Vagrant will handle destroying the virtual machine if you so choose.
|
as Vagrant will handle destroying the virtual machine if you so choose.
|
||||||
|
|
||||||
|
## Vagrant Project Setup
|
||||||
|
|
||||||
The first step for any project which uses Vagrant is to mark the root directory
|
The first step for any project which uses Vagrant is to mark the root directory
|
||||||
and setup the basic required files. Vagrant provides a handy command-line utility
|
and setup the basic required files. Vagrant provides a handy command-line utility
|
||||||
for just that. In the terminal transcript below, we create the directory for our
|
for just that. In the terminal transcript below, we create the directory for our
|
||||||
|
@ -24,3 +26,17 @@ $ vagrant init
|
||||||
`vagrant init` creates an initial Vagrantfile. For now, we'll leave this Vagrantfile
|
`vagrant init` creates an initial Vagrantfile. For now, we'll leave this Vagrantfile
|
||||||
as-is, but it will be used extensively in future steps to configure our virtual
|
as-is, but it will be used extensively in future steps to configure our virtual
|
||||||
machine.
|
machine.
|
||||||
|
|
||||||
|
## Rails Project Setup
|
||||||
|
|
||||||
|
With Vagrant now ready for the given directory, lets add rails to it. In the
|
||||||
|
same directory run the `rails` command:
|
||||||
|
|
||||||
|
{% highlight bash %}
|
||||||
|
$ rails .
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
This creates a rails-app in the current directory. We'll leave it as-is.
|
||||||
|
|
||||||
|
The above setups required (rails and vagrant) could have been run in any order.
|
||||||
|
Vagrant can easily be initialized in already-existing project folders.
|
Loading…
Reference in New Issue