Giter VIP home page Giter VIP logo

new-php-project's Introduction

New PHP Project

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.

NOTE: This is a work in progress so I suggest you don't use it yet

Getting started

  1. Clone this repo git clone [email protected]:violuke/new-php-project.git
  2. Build your vagrant box and SSH to it, by running vagrant up && vagrant ssh
  3. 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
    1. Set your own timezone in VagrantProvisioning/debops/ansible/inventory/group_vars/all/ntp.yml
    2. Set your domain in VagrantProvisioning/debops/ansible/inventory/group_vars/all/bootstrap.yml
  4. 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.
  5. When you want to publish your project to production, get your hosts file updated and run TBC

Configuring your production servers

  1. Configure your hosts
  2. 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

TODO:

  1. Git crypt & security
  2. Completed instructions

new-php-project's People

Contributors

violuke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.