Coder Social home page Coder Social logo

rehabstudio / vagrant-puppet-cakephp Goto Github PK

View Code? Open in Web Editor NEW
5.0 12.0 1.0 164 KB

A vagrant box based on puphpet that has some customisations and supports setup of the FriendsOfCake/app-template project

License: MIT License

Puppet 80.00% Shell 20.00%

vagrant-puppet-cakephp's Introduction

PHP/Nginx/MySQL vagrant box

Be patient with the vagrant up as it can take up to an hour depending on your connection.

Simple vagrant build for a general php/mysql setup on nginx. This will boot up an nginx/php/mysql ubuntu box for a single instance. It uses host manager for easy local DNS configuration.

This particular box also installs some CakePHP dependencies.

Requirements

Installation

  1. Navigate inside the vagrant folder and create the guest machine vagrant up

  2. After the installation finishes, visit the chosen domain: http://app.dev

Customisation

All settings can be found in vagrant/config.yaml.

Adding Modules

Puppet modules are managed by Librarian-Puppet Add any extra modules to the Puppetfile

MySQL Access

MySQL can be accessed internally on the box by SSHing into it using vagrant ssh, or, by using a desktop client (or command-line) from your host machine. The MySQL server package has been pre-configured to allow access from your remote machine using a combination of the private IP address from vagrant and the generated users credentials. You can connect using a command (from your host machine) like the following:

mysql --host=192.168.99.16 --user=username --password=password

Connecting to MySQL via SequelPro or MySQL Workbench

Create a new SSH connection with the following settings

MySQL Host: 192.168.99.16
Username: root
Password: 123456

SSH Host: 192.168.99.16
SSH User: vagrant
SSH password: vagrant

Node Dependencies

There is a statement included in the puppet files to search your $siteRoot for a package.json file. If one is found, then the command npm install will be run on your behalf. The longer a project runs the more likely its dependencies will change. If you add or remove packages from your package.json file, simply run vagrant provision to have it re-run the npm install command.

Troubleshooting

Please note that running vagrant up for the first time can come with some issues to fix up. If you run into any issues please refer to the troubleshooting documentation and if you have anything to add to this please do.

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.