| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Vagrant_php-pgsql is a vagrant-based virtual stack providing running two virtual machines: an Apache2 web server with PHP5 installed and a separate PostgreSQL server.
The purpose of this repository is to demonstrate the ability of vagrant to create a development environment that models production, including an environment consisting of multiple machines.
This repository can also be used as starter repository for building PHP projects with PostgreSQL backend. Change the recipes to build with MySQL instead.
> sudo su postgres
bash-4.1$ psql -d sampledb
could not change directory to "/home/vagrant"
psql (8.4.13)
Type "help" for help.
sampledb=# set search_path = sample, pg_catalog;
SET
sampledb=# \du
List of roles
Role name | Attributes | Member of
----------------------+--------------+---------------------
postgres | Superuser | {}
: Create role
: Create DB
sample_user | | {sampledb_dbo_role}
sampledb_dbo_role | Cannot login | {}
sampledb_select_role | Cannot login | {}
List of relations
Schema | Name | Type | Owner
--------+------------------------+----------+-------------
sample | contact | table | postgres
sample | contact_contact_id_seq | sequence | sample_user
(2 rows)This project was put together by Greg Elin at the FCC with learnings from http://OpenDataDevOps.org project.
| Back | FazBrowse Home | New Git URL |