Skip to content

Commit

Permalink
Update paths for rename
Browse files Browse the repository at this point in the history
Sinse we now changes the package name, the dir has also changed.
  • Loading branch information
joehoyle committed May 13, 2019
1 parent e55b344 commit 7e7345c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions inc/Composer/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ protected function execute( InputInterface $input, OutputInterface $output ) {
protected function start( InputInterface $input, OutputInterface $output ) {
$output->writeln( 'Starting...' );

$proxy = new Process( 'docker-compose -f proxy.yml up -d', 'vendor/humanmade/local-server/docker' );
$proxy = new Process( 'docker-compose -f proxy.yml up -d', 'vendor/altis/local-server/docker' );
$proxy->run();

$compose = new Process( 'docker-compose up -d', 'vendor/humanmade/local-server/docker', [
$compose = new Process( 'docker-compose up -d', 'vendor/altis/local-server/docker', [
'VOLUME' => getcwd(),
'COMPOSE_PROJECT_NAME' => basename( getcwd() ),
'PATH' => getenv( 'PATH' ),
Expand Down Expand Up @@ -121,10 +121,10 @@ protected function start( InputInterface $input, OutputInterface $output ) {
protected function stop( InputInterface $input, OutputInterface $output ) {
$output->writeln( 'Stopping...' );

$proxy = new Process( 'docker-compose stop', 'vendor/humanmade/local-server/docker' );
$proxy = new Process( 'docker-compose stop', 'vendor/altis/local-server/docker' );
$proxy->run();

$compose = new Process( 'docker-compose stop', 'vendor/humanmade/local-server/docker', [
$compose = new Process( 'docker-compose stop', 'vendor/altis/local-server/docker', [
'VOLUME' => getcwd(),
'COMPOSE_PROJECT_NAME' => basename( getcwd() ),
] );
Expand All @@ -138,10 +138,10 @@ protected function stop( InputInterface $input, OutputInterface $output ) {
protected function destroy( InputInterface $input, OutputInterface $output ) {
$output->writeln( 'Destroying...' );

$proxy = new Process( 'docker-compose down -v', 'vendor/humanmade/local-server/docker' );
$proxy = new Process( 'docker-compose down -v', 'vendor/altis/local-server/docker' );
$proxy->run();

$compose = new Process( 'docker-compose down -v', 'vendor/humanmade/local-server/docker', [
$compose = new Process( 'docker-compose down -v', 'vendor/altis/local-server/docker', [
'VOLUME' => getcwd(),
'COMPOSE_PROJECT_NAME' => basename( getcwd() ),
] );
Expand Down Expand Up @@ -190,7 +190,7 @@ protected function cli( InputInterface $input, OutputInterface $output ) {

passthru( sprintf(
'cd %s; VOLUME=%s COMPOSE_PROJECT_NAME=%s docker-compose exec %s -u nobody php wp %s',
'vendor/humanmade/local-server/docker',
'vendor/altis/local-server/docker',
getcwd(),
basename( getcwd() ),
! posix_isatty( STDOUT ) ? '-T' : '', // forward wp-cli's isPiped detection
Expand All @@ -201,7 +201,7 @@ protected function cli( InputInterface $input, OutputInterface $output ) {
}

protected function status( InputInterface $input, OutputInterface $output ) {
$compose = new Process( 'docker-compose ps', 'vendor/humanmade/local-server/docker', [
$compose = new Process( 'docker-compose ps', 'vendor/altis/local-server/docker', [
'VOLUME' => getcwd(),
'COMPOSE_PROJECT_NAME' => basename( getcwd() ),
] );
Expand All @@ -212,7 +212,7 @@ protected function status( InputInterface $input, OutputInterface $output ) {

protected function logs( InputInterface $input, OutputInterface $output ) {
$log = $input->getArgument( 'options' )[0];
$compose = new Process( 'docker-compose logs -f ' . $log , 'vendor/humanmade/local-server/docker', [
$compose = new Process( 'docker-compose logs -f ' . $log , 'vendor/altis/local-server/docker', [
'VOLUME' => getcwd(),
'COMPOSE_PROJECT_NAME' => basename( getcwd() ),
] );
Expand All @@ -225,7 +225,7 @@ protected function logs( InputInterface $input, OutputInterface $output ) {
protected function shell( InputInterface $input, OutputInterface $output ) {
passthru( sprintf(
'cd %s; VOLUME=%s COMPOSE_PROJECT_NAME=%s docker-compose exec php /bin/bash',
'vendor/humanmade/local-server/docker',
'vendor/altis/local-server/docker',
getcwd(),
basename( getcwd() )
), $return_val );
Expand Down

0 comments on commit 7e7345c

Please sign in to comment.