Lightweight development (Lightning talk)
Upcoming SlideShare
Loading in...5
×
 

Lightweight development (Lightning talk)

on

  • 436 views

The quest for a lightweight development environment for local PHP development.

The quest for a lightweight development environment for local PHP development.

Statistics

Views

Total Views
436
Views on SlideShare
415
Embed Views
21

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 21

https://twitter.com 21

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Lightweight development (Lightning talk) Lightweight development (Lightning talk) Presentation Transcript

  • Lightweight Development
  • Roger López @zroger
  • I develop locally.
  • The old ways...
  • MAMP
  • System-wide services
  • Newer ways
  • Vagrant
  • Dev-friendly hosting
  • drush runserver
  • Everything to the foreground!
  • My Ideal Solution • Runs in the foreground. Start, stop, go away. • Easily use different configurations per project. • Uses easily installable services (homebrew).
  • httpd -d . -f httpd.conf -DFOREGROUND
  • minimal httpd.conf https://gist.github.com/zroger/5990997 76 lines, heavily commented
  • # # Minimal httpd.conf for running apache in the foreground for local php # development. # # Setup: # 1. Place this file in the root of your project. # 2. Make sure the ./tmp directory exists (for the pid and lock files). # 3. Update the DocumentRoot and Directory directives with the relative path to # your project's document root. # # Usage: # httpd -d . -f httpd.conf -DFOREGROUND # # Relative file paths in this file are relative to the server root, which is # assumed to be set from the command line option, as in the about usage. #   ServerName localhost Listen 8080 PidFile tmp/httpd.pid LockFile tmp/accept.lock
  • Automate it.
  • foreman manages Procfile-based applications
  • Procfile web: httpd -d . -f httpd.conf -DFOREGROUND
  • Procfile web: httpd -d . -f httpd.conf -DFOREGROUND db: mysqld --log-error=/dev/stdout cache: memcached -v search: solr ./example/solr/
  • Roger López @zroger
  • Phase2Technology.com