Coder Social home page Coder Social logo

jasonrhodes / local-dev-environment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ncsuwebdev/local-dev-environment

0.0 1.0 0.0 232 KB

Vagrant box used for a local development environment (with WRAP support)

Ruby 19.95% Puppet 79.08% Shell 0.97%

local-dev-environment's Introduction

Steps to make it happen
=========================================================================

- By default, it will share the Apache docroot (located at /var/www/html) to your local folder of 
/usr/local/htdocs.  You can change that if you'd like in the Vagrantfile.  Just update the 
value for the config.vm.share_folder setting.

- By default it forwards port 80 from the VM to port 8080 on your local machine. You can modify
this setting in the Vagrantfile as well. Just update the config.vm.forward_port value to 80, 80

You'll need to make the /usr/local/htdocs folder (or whatever you set it to) yourself.

1) Install Vagrant (http://downloads.vagrantup.com/)
2) Install VirtualBox (https://www.virtualbox.org/wiki/Downloads)
3) In the directory with your server configs run:  'vagrant up'
4) Navigate to localhost:8080 and you should be good to go.

**********************************
Note: For WRAP to work, you must be using host with a cname (i.e. - your-cname.unity.ncsu.edu:8080).

Due to issues with the VM's networking, your "real" IP won't be forwarded to the VM. In order for
WRAP to work correctly, you'll need to make sure you select "1 hour, any address" as the Cookie Type 
when logging in to WRAP.
**********************************

By default, it will share the Apache docroot (located at /var/www/html) to your 
local /usr/local/htdocs folder.  You can change that if you'd like in the Vagrantfile.  
Just update the value for the config.vm.share_folder setting.

To hook up Sequel Pro to connect to the DB remotely
=========================================================================
1) Download Sequel Pro (http://www.sequelpro.com/download)
2) Make a new connection (set the following things and leave the rest as the defaults)
        Name:  Vagrant Box (or whatever you want)
        MySQL Host: 127.0.0.1
        Username: root
        SSH Host: 127.0.0.1
        SSH User: vagrant
        SSH Key: ~/.vagrant.d/insecure_private_key
        SSH Port: 2222

3) Hit connect!
4) You're done! Use Sequel Pro like a boss.


Connect to the VM with SSH
=========================================================================
- From the directory of your configs, just do 'vagrant ssh'
 
Note: sudo doesn't need a password or anything.  Just do 'sudo -s' and you're good to go.


Rerun the puppet configs without relaunching the VM
=========================================================================
- From the directory of your configs, just do 'vagrant provision'


Anything else 
=========================================================================
- From the directory of your configs, just do 'vagrant -h' for the list of commands available

local-dev-environment's People

Contributors

gplocke avatar jasonrhodes 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.