Skip to content
This repository

Midgard Project website

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 configuration
Octocat-spinner-32 controllers
Octocat-spinner-32 data
Octocat-spinner-32 models
Octocat-spinner-32 setup
Octocat-spinner-32 static
Octocat-spinner-32 templates
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
Octocat-spinner-32 application.yml
Octocat-spinner-32 composer.json
Octocat-spinner-32 injector.php
Octocat-spinner-32 manifest.yml
README.markdown

Midgard Project website component

This Midgard MVC component is designed for running the Midgard Project website according to the new single page for product approach outlined on a midgard-dev thread.

Setup with Vagrant

You'll need a working Vagrant installation. Make a local clone of this repository:

$ git clone git://github.com/midgardproject/org_midgardproject_projectsite.git

Then start Vagrant:

$ cd org_midgardproject_projectsite/setup/vagrant
$ vagrant up

This will take a while as Vagrant will construct a new virtual machine with Ubuntu 12.10, Midgard, and Midgard MVC.

The site will be available in http://localhost:8181

Restarting the server

The Vagrant setup of the site uses AppServer-in-PHP for serving the pages. If you make modifications to any files, you'll have to restart the server.

Make a SSH connection to the Vagrant virtual machine:

$ vagrant ssh

And then just restart the service:

$ sudo service midgardmvc stop
$ sudo service midgardmvc start

Working with the content

As this site isn't live yet, you can work on the content on your local installation. We will keep a copy of all the content in this Git repository in Midgard's serialized format.

To import the initial content, run:

$ vagrant ssh
$ php bin/import_content.php

To get started with editing, log in at http://localhost:8181/mgd:login

This should make the Midgard Create user interface available.

To share your modifications, run:

$ vagrant ssh
$ php bin/export_content.php
$ git commit -m "Some new modifications"
$ git push
Something went wrong with that request. Please try again.