Skip to content

Grosloup/PHP-Workers-Tutorial

 
 

Repository files navigation

PHP-Workers-Tutorial

Git Repository with my code for the PHP Workers Tutorial

Setup

Git

Clone the repository from your command line:

git clone https://github.com/JustinCarmonyDotCom/PHP-Workers-Tutorial.git
cd PHP-Workers-Tutorial

Initialize & Update the submodules so that you can use the Beanstalk Console:

git submodule init
git submodule update

Composer

Now we need to install our dependencies from composer. You can find out how to setup composer here. So in the root of the project you should be able to run:

composer.phar install

Setup Config File

In the root of the project there is a config.sample.php which you need to copy to config.php. It just requires a API key for http://www.dictionaryapi.com/ (or you can just use mine that is in the sample).

Vagrant

Now, we use Vagrant to setup an environment for our demo. Make sure you have VirtualBox (or another vagrant provider) and Vagrant installed. Once they are installed you can go into the vagrant folder and vagrant up the project:

cd vagrant
vagrant box add precise64 http://files.vagrantup.com/precise64.box
vagrant up

If there are no errors, you should see something like this:

[default] Running provisioner: puppet...
Running Puppet with base.pp...
stdin: is not a tty
Info: Applying configuration version '1370578233'
Notice: /Stage[main]/Redis/Package[redis-server]/ensure: ensure changed 'purged' to 'present'
... more install notices ...
Notice: Finished catalog run in 317.18 seconds

About

Git Repository with my code for the PHP Workers Tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.0%
  • PHP 7.5%
  • Puppet 4.7%
  • HTML 2.1%
  • Ruby 1.8%
  • Perl 0.8%
  • ApacheConf 0.1%