Skip to content

Instantly share code, notes, and snippets.

@dholmes
Created October 8, 2015 16:53
Show Gist options
  • Save dholmes/3a4dfdf00786b84fc44b to your computer and use it in GitHub Desktop.
Save dholmes/3a4dfdf00786b84fc44b to your computer and use it in GitHub Desktop.

Dan's quick start build for Craft project

  1. Download craft from http://buildwithcraft.com/docs/installing
  2. Use puphpet.com to generate a new server build:
    • Shared Folder / Folder Source: ../
    • System Packages: htop, curl, vim (because I like having them)
    • Nginx Host
      • Server Name: craft-demo.dev
      • Server Alias: if not needed
      • Document Root: /var/www/public
    • PHP (5.6)
      • install composer
      • PHP Modules: cli, intl, mcrypt, imagick, mbstring, curl
    • Libraries
      • Install Xdebug
      • xdebug.ide_key = PHPSTORM
    • NPM -- may install it some other time (like for Bower, etc)
    • MySQL (5.6)
      • Username: craft_user
      • Password: 1235
      • DB Name: craft_core
      • Grant: craft_user, ., ALL
    • Install MailCatcher
      • HTTP Port 1080, Inline
  3. mkdir a clean project dir and cd into it
  4. unzip Craft package
  5. unzip Puphpet.com zip file
  6. move randmly named directory from pupphet.com to vagrant
  7. cd vagrant
  8. vagrant up Wait. Seriously. Even with SSD you will wait.
    If you want fast initial deploy, go with phansible or Vagrantfile + Bash!
  9. update craft/config/db Update credentials to connect to mysql localhost, root, 123, craft_core, etc
  10. http://craft-demo.dev/admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment