Skip to content

Instantly share code, notes, and snippets.

@Stephenitis
Created September 17, 2014 19:00
Show Gist options
  • Save Stephenitis/36e6bbcb47dc0a3ebd4a to your computer and use it in GitHub Desktop.
Save Stephenitis/36e6bbcb47dc0a3ebd4a to your computer and use it in GitHub Desktop.
IronWorker .worker file using PHP and ffmpeg stack
{
"require": {
"php-ffmpeg/php-ffmpeg": "0.5.*@dev",
"codescale/ffmpeg-php": "dev-master",
"pulse00/ffmpeg-bundle": "dev-master",
"php-ffmpeg/extras": "0.3.*@dev"
}
}
# declare runtime
runtime "php"
# define IronWorker stack
stack "ffmpeg-2.3"
# include your package.json and build script, builds happen once initialy on upload on not each time task is run
file "composer.phar"
file "composer.json"
build "php composer.phar install"
# define your executable
exec "ffmpeg_php_worker.php"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment