This project consists of Ansible scripts to install and configure infrastructure and application code for the Community Budget Explorer.
The CBE consists of 2 web applications:
- A main CBE application that interacts with both administrative users and budget site users
- A data service that delivers budget and other data to the application and processes uploaded files and API data
This project can be used to install either of the two or both of them at once in a development or production environment. It is set up to work with Vagrant on a local machine or to set up on a remote host.
Setting up an environment is straightforward, but may take some time, particularly installation steps via composer and npm.
To get started on Vagrant, simply check out this repository, change the IP address in Vagrantfile if desired and run
vagrant up
from inside the main repository directory. Then vagrant ssh into the virtual server and run the following:
cd /var/www
ansible-playbook -i "localhost," -c local playbooks/all.yml
Note that the comma following localhost is required.
IMPORTANT: Do not run this playbook after beginning development work - it can remove modified application files.
The first step is to set up a server running Ubuntu 14.04 LTS - no guarantees that anything here will work on other systems.
Log in to the server, install git, clone this repository, change to the main repository directory and run:
/bin/bash bootstrap.sh
ansible-playbook -i "localhost," -c local playbooks/all.yml
Note that the comma following localhost is required.
IMPORTANT: Do not run this playbook after beginning development work - it can remove modified application files.
If you would like to initialize the CBE with some sample data, you can also run:
cd /var/www/cbe
php artisan migrate --seed