Skip to content

Instantly share code, notes, and snippets.

@zmh
zmh / bowery-php-mysql.md
Last active August 29, 2015 14:02
Using Bowery with PHP and MySQL

Using Bowery with PHP and MySQL

Bowery works well with PHP and MySQL, but there are a few steps you have to take before you can get started.

##Short version

  1. Run bowery pull 5397a3faabd3328a13000006 in an empty directory
  2. Run bowery connect and then disconnect with CTRL+C once you see the message "Service php upload complete. Syncing file changes."
  3. Run bowery ssh php, service apache2 restart, and then exit. Disregard any terminal output or warnings that are printed.
  4. Run bowery ssh mysql, mysql --user=root --password=your_password < /application/example.sql, and then exit. Disregard any terminal output or warnings that are printed.
  5. Run bowery connect and then open the last URL that is printed.
@zmh
zmh / gist:46653f6c97013e05a800
Last active August 29, 2015 14:01
PHP 5.5 on Bowery

To use the php55 image on Bowery:

Step 1: Create new directory for application.

$ mkdir newapp && cd newapp

Step 2: Create service using the php55 image.

$ bowery add web