Skip to content

Instantly share code, notes, and snippets.

@jmny
jmny / migration.php
Last active December 14, 2023 04:44
phinx outside cli
// see also https://github.com/robmorgan/phinx/issues/364
$phinxApp = new \Phinx\Console\PhinxApplication();
$phinxTextWrapper = new \Phinx\Wrapper\TextWrapper($phinxApp);
$phinxTextWrapper->setOption('configuration', '/path/to/phinx.yml');
$phinxTextWrapper->setOption('parser', 'YAML');
$phinxTextWrapper->setOption('environment', 'development');
FROM influxdb:0.13
ADD setup_and_start.sh /root/setup_and_start.sh
RUN chmod u+x /root/setup_and_start.sh
ENTRYPOINT /root/setup_and_start.sh
me@host:~/-$ python
>>> bool([])
False
>>>
me@host:~/-$ nodejs
> !![]
true