This file contains 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
namespace :database do | |
namespace :restore do | |
desc "Uploads latest db dump to remote and populates data into db" | |
task :remote, :roles => :db, :only => { :primary => true } do | |
filename = "#{application}.remote_dump.latest.sql.gz" | |
file = "#{backup_path}/#{filename}" | |
sqlfile = "#{application}_dump.sql" | |
config = "" | |
upload(file, "#{remote_tmp_dir}/#{filename}", :via => :scp) |
This file contains 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 | |
# Usage: | |
# dockerProxessProxy.sh ContainerName param1 param2 param3 | |
# ContainerName - required, param* are passed to docker run command | |
NAME=$1 | |
trap "{ echo Stopping $NAME; docker stop $NAME; exit 0;}" EXIT | |
docker run --name $NAME --rm -a stdout -a stderr ${*:2} |
This file contains 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
<?php | |
namespace Accesto\Tests\Functional; | |
use Facebook\WebDriver\Remote\RemoteWebDriver; | |
use Facebook\WebDriver\WebDriverBy; | |
use Facebook\WebDriver\WebDriverExpectedCondition; | |
abstract class BasePageObject | |
{ |
This file contains 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
RewriteEngine On | |
RewriteCond %{HTTP:X-Forwarded-Proto} =http | |
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] |