This is a great starting point for all new PHP projects. It will help you configure a development environment and also your production environment to the same spec.
- Clone this repo
git clone [email protected]:violuke/new-php-project.git
- Build your vagrant box and SSH to it, by running
vagrant up && vagrant ssh
- Modify Ansible config as required (such as for your domain name). Set up DNS (or edit hosts file) to point your domain to
10.0.60.2
- Set your own timezone in
VagrantProvisioning/debops/ansible/inventory/group_vars/all/ntp.yml
- Set your domain in
VagrantProvisioning/debops/ansible/inventory/group_vars/all/bootstrap.yml
- Set your own timezone in
- Within the Vagrant box, run
cd /vagrant/VagrantProvisioning/debops/ansible/ && debops bootstrap --user vagrant
to configure all the web and db docker contains, just as they would be in production. - When you want to publish your project to production, get your hosts file updated and run
TBC
- Configure your hosts
- At this point you most likely have to connect to that host using the root account and specifying a password.
To make that easier, you can use a special "bootstrap" Ansible playbook to prepare a host for easier management.
To do this, execute the command:
debops bootstrap --limit server --user root --ask-pass
- Git crypt & security
- Completed instructions