From a8db810d24494137b58d207ea41e1569e943bd6f Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 12 Feb 2018 12:25:45 -0500 Subject: Add docker-compose setup for local development --- scripts/entrypoint.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts') diff --git a/scripts/entrypoint.pl b/scripts/entrypoint.pl index a9ed4ee8c..83576d559 100755 --- a/scripts/entrypoint.pl +++ b/scripts/entrypoint.pl @@ -78,6 +78,10 @@ sub cmd_httpd { check_data_dir(); wait_for_db(); check_httpd_env(); + httpd(); +} + +sub httpd { my @httpd_args = ( '-DFOREGROUND', '-f' => '/app/httpd/httpd.conf', @@ -91,6 +95,16 @@ sub cmd_httpd { run( '/usr/sbin/httpd', @httpd_args ); } +sub cmd_dev_httpd { + wait_for_db(); + my $have_params = -f "/app/data/params"; + run( 'perl', 'checksetup.pl', '--no-template', $ENV{BZ_ANSWERS_FILE} ); + if ( not $have_params ) { + run( 'perl', 'scripts/generate_bmo_data.pl', '--param' => 'use_mailer_queue=0', 'vagrant@bmo-web.vm' ); + } + httpd(); +} + sub cmd_load_test_data { wait_for_db(); -- cgit v1.2.3-24-g4f1b