Giter Club home page Giter Club logo

tasty-dev-box's Introduction

Vagrant + Chef + LAMP. At the very the least, the idea is to replace the need for XAMPP on Windows.

Install on Windows

Install the basics

Make sure Ruby is installed

  • If you run the command ruby -v, you should see a version number printed on the next line
  • If not, you will need to add ruby to your path: PATH=$PATH:/c/Ruby193/bin ††
  • Try the command ruby -v again. This time, you should see the version number

Install Vagrant

This should be the easy part. Just run gem install vagrant from the git bash

Setup Git

We are not going to necessarily be using Github to host our repo, but their help documentation on git is top-notch.

Run Vagrant

  • From the materia directory (where the git repo lives), cd into the vagrant folder

  • Run vagrant up

  • At this point, a bunch of commands will run and you will see a lot of output.

Modify Hosts File

  • Open notepad as an administrator
  • Open the hosts file in C:/Windows/System32/drivers/etc/
  • Add the following line and save: 192.168.33.10 SITE_NAME ‡‡

Take a Look

At this point, if you navigate from your browser to http://SITE_NAME/, you should see the home page load!

SSH

  • On a unix envrionment, you can run the command vagrant ssh to ssh into the box (from the vagrant directory). On a Windows machine, however, you have to do it a little differently:
  • From the git bash, run the command ssh [email protected] ‡‡
  • You will be asked to continue connection. Say yes.
  • When prompted for a password, use vagrant

Footnotes

  • † When installing Ruby, I chose the most recent version, which was Ruby 1.9.3-p194 at the time of this writing
  • ‡ Vagrant recommends VirtualBox versions 4.2.x - 4.0.x
  • †† Or wherever the bin folder is located for your Ruby installation
  • ‡‡ Your box's IP will depend on what is in the config.vm.network setting in your Vagrantfile

tasty-dev-box's People

Contributors

keeeeeegan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.