I just released standalone mvc_installer.
posted to #midgard Aptekarskiy 17.12.2010 (en)
A little tutorial (updated to reflect changes in 1.0.1)
MidgardMVC Installer works with application manifest files, which are just structured YAML-files. You can find example of such file here.
So, if you want to deploy MidgardMVC based application, you should type:
Installer will:midgardmvc install http_://github.com/path/to/application.yml local/app/path
By default, Installer uses SQLite as the backend for Midgard database, but you can specify additional parameter --db=mysql. This way, Installer will ask you questions about your MySQL setup and use your answers to setup application's Midgard database in MySQL.
@indeyets couple of proposed improvements:
midgardmvc_installer 1.0.2 is released
What's new:
@solt run midgardmvc on the command line :-)
Basically the setup happens with:midgardmvc install application.yml /target/dir/target/dir/run
@bergie so it means I need to have a package that provides application.yml. That is most confusing...
With old midcom you had it in pear and were creating symlibks in webdocs space to install within a vhost
Also, what about midgard database? Shall I use midgard-schema to install it?
@solt the MVC installer will do everything... install PEAR dependencies, check out MVC components from Git, create database, create web server config, populate database. You just need to have an application.yml. See for example https://github.com/bergie/org_midgard...
@bergie
#midgardmvc install https://github.com/bergie/org_midgard... /my/path
....
# fetching MidgardMVC components
PHP Catchable fatal error: Argument 1 passed to pakeMidgardMvcComponent::install_mvc_components() must be an array, null given, called in /usr/share/php/midgardmvc_installer/tasks/pakeNewMidgardMvcAppTask.class.php on line 56 and defined in /usr/share/php/midgardmvc_installer/pakeMidgardMvcComponent.class.php on line 6
midgardmvc_installer 1.0.3 is released
What's new:
@indeyets great work! Next up: I wonder if a good 'default setup' to advocate to users would be autoupdating apps from cron?
In any case, a next interesting step would be to make the fact that stuff has been updated visible in the interface. A proposed way to do this:
Copyright Rohea Oy 2010 | Mobile version | Feedback | API | Terms of Service | Applications and tools