def test_find_stand_alone_app_to_run_app_start_cmd(self): ctx = {'APP_START_CMD': "echo 'Hello World!'"} eq_("echo 'Hello World!'", find_stand_alone_app_to_run(ctx)) results = ('app.php', 'main.php', 'run.php', 'start.php', 'app.php') for i, res in enumerate(results): ctx = {'BUILD_DIR': 'tests/data/standalone/test%d' % (i + 1)} eq_(res, find_stand_alone_app_to_run(ctx))
def test_find_stand_alone_app_to_run_app_start_cmd(self): ctx = {"APP_START_CMD": "echo 'Hello World!'"} eq_("echo 'Hello World!'", find_stand_alone_app_to_run(ctx)) results = ("app.php", "main.php", "run.php", "start.php", "app.php") for i, res in enumerate(results): ctx = {"BUILD_DIR": "tests/data/standalone/test%d" % (i + 1)} eq_(res, find_stand_alone_app_to_run(ctx))
def service_commands(ctx): if is_web_app(ctx): return { 'hhvm': ('$HOME/hhvm/hhvm', '--mode server', '-c $HOME/hhvm/etc/config.hdf') } else: app = find_stand_alone_app_to_run(ctx) return {'hhvm-app': ('$HOME/hhvm/hhvm', app)}
def service_commands(ctx): if is_web_app(ctx): return { 'php-fpm': ('$HOME/php/sbin/php-fpm', '-p "$HOME/php/etc"', '-y "$HOME/php/etc/php-fpm.conf"'), 'php-fpm-logs': ('tail', '-F $HOME/../logs/php-fpm.log') } else: app = find_stand_alone_app_to_run(ctx) return {'php-app': ('$HOME/php/bin/php', '-c "$HOME/php/etc"', app)}
def _service_commands(self): if is_web_app(self._ctx): return { 'php-fpm': ('$HOME/php/sbin/php-fpm', '-p "$HOME/php/etc"', '-y "$HOME/php/etc/php-fpm.conf"', '-c "$HOME/php/etc"') } else: app = find_stand_alone_app_to_run(self._ctx) return { 'php-app': ('$HOME/php/bin/php', '-c "$HOME/php/etc"', app) }
def service_commands(ctx): if is_web_app(ctx): return { "php-fpm": ( "$HOME/php/sbin/php-fpm", '-p "$HOME/php/etc"', '-y "$HOME/php/etc/php-fpm.conf"', '-c "$HOME/php/etc"', ), "php-fpm-logs": ("tail", "-F $HOME/../logs/php-fpm.log"), } else: app = find_stand_alone_app_to_run(ctx) return {"php-app": ("$HOME/php/bin/php", '-c "$HOME/php/etc"', app)}
def service_commands(ctx): if is_web_app(ctx): return { 'hhvm': ( '$HOME/hhvm/hhvm', '--mode server', '-c $HOME/hhvm/etc/config.hdf') } else: app = find_stand_alone_app_to_run(ctx) return { 'hhvm-app': ( '$HOME/hhvm/hhvm', app) }
def _service_commands(self): if is_web_app(self._ctx): return { 'hhvm': ( '$HOME/hhvm/usr/bin/hhvm', '--mode server', '-c $HOME/hhvm/etc/server.ini', '-c $HOME/hhvm/etc/php.ini') } else: app = find_stand_alone_app_to_run(self._ctx) return { 'hhvm-app': ( '$HOME/hhvm/usr/bin/hhvm', '-c $HOME/hhvm/etc/php.ini', app) }
def service_commands(ctx): if is_web_app(ctx): return { 'php-fpm': ( '$HOME/php/sbin/php-fpm', '-p "$HOME/php/etc"', '-y "$HOME/php/etc/php-fpm.conf"'), 'php-fpm-logs': ( 'tail', '-F $HOME/../logs/php-fpm.log') } else: app = find_stand_alone_app_to_run(ctx) return { 'php-app': ( '$HOME/php/bin/php', '-c "$HOME/php/etc"', app) }