This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name expertphpdeployments.com www.expertphpdeployments.com; | |
| return 301 https://expertphpdeployments.com$request_uri; | |
| } | |
| server { | |
| listen 443; | |
| server_name expertphpdeployments.com; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; | |
| default_type application/octet-stream; | |
| sendfile on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="Your Application" default="build"> | |
| <resolvepath propertyName="root_path" file="./" /> | |
| <resolvepath propertyName="config_path" file="./app/config/" /> | |
| <php function="date" returnProperty="build_date"> | |
| <param value="c" /> | |
| </php> | |
| <php function="time" returnProperty="build_timestamp" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| parameters: | |
| database_driver: "pdo_pgsql" | |
| database_host: "@@DB_SETTINGS_HOST@@" | |
| database_port: ~ | |
| database_name: "@@DB_SETTINGS_DATABASE@@" | |
| database_user: "@@DB_SETTINGS_USERNAME@@" | |
| database_password: "@@DB_SETTINGS_PASSWORD@@" | |
| test_database_driver: "pdo_pgsql" | |
| test_database_host: "@@DB_SETTINGS_TEST_HOST@@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db_settings.host=localhost | |
| db_settings.database=application | |
| db_settings.username=application | |
| db_settings.password= | |
| db_settings_test.host=localhost | |
| db_settings_test.database=application_test | |
| db_settings_test.username=application_test | |
| db_settings_test.password= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| PHPMINVERSION='5.5.0' | |
| PHPVERSION=`php -r "echo phpversion();"` | |
| PHPCORRECTVERSION=`php -r "echo version_compare(phpversion(), '$PHPMINVERSION');"` | |
| GREEN="\033[1;32m" | |
| RED="\033[1;31m" | |
| BLUE="\033[1;34m" | |
| YELLOW="\033[1;33m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # If Vagrant has already been provisioned, do not do anything. | |
| # This saves us from accidentally running `vagrant up` without the --no-provision | |
| # flag and messing up the box. | |
| VAGRANT_PROVISIONED=/etc/vagrant-provisioned | |
| if [ -e $VAGRANT_PROVISIONED ] | |
| then | |
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # Every Vagrant virtual environment requires a box to build off of. | |
| config.vm.box = "precise64" | |
| config.vm.provision :shell, :path => "config/vagrant-bootstrap.sh" | |
| # Create a forwarded port mapping. | |
| config.vm.network :forwarded_port, guest: 8000, host: 8000, auto_correct: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Deployment remotes | |
| set :stages, %w(production staging) | |
| set :default_stage, 'staging' | |
| require 'capistrano/ext/multistage' | |
| # Repo options | |
| set :application, 'MajorAuth' | |
| set :repository, '[email protected]:brightmarch/major-auth.git' | |
| set :scm, :git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load 'deploy' | |
| Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | |
| load 'config/deploy' | |
| namespace :deploy do | |
| task :install_composer, :roles => :web do | |
| run "curl -s https://getcomposer.org/installer | php -- --install-dir=#{latest_release}" | |
| end |