This is the source code for the vtcodecamp.org website.
Development of this web application is done using VirtualBox and Vagrant. To set up your own local development environment:
- Install VirtualBox
- Install Vagrant
- Add the puphpet/centos65-x64 box with
virtualbox
as the provider (if not already on your system):
vagrant box add puphpet/centos65-x64
- Bring up the virtual machine (from the root of this project):
vagrant up
- The project should now be available on
localhost
port2611
:
http://localhost:2611/
If localhost says "Site Can't be Reached", check that Apache is running
- ssh into vagrant
vagrant ssh
- Check httpd status
sudo service httpd status
- If httpd is stopped, start it:
sudo service httpd start
To run a build manually (with the virtual machine already running):
- SSH in to the virtual machine:
vagrant ssh
- Change to the vagrant directory:
cd /vagrant
- Run the build command:
/usr/bin/php /vagrant/admin.php events:build
This web application is configured for deployment on Heroku.
Based on the current configuration, deployment is simply a matter of pushing the master
branch of your clone of the Git repository for this project to the GitHub repository.
When the application is set up on Heroku, the following environment variables must be created:
TWIG_CACHE
:var/twig
DATA_CACHE
:var/data