Administration Panel

Remember when we said there was no complex administration panel? Well, we kinda lied. Only not really, since the one that comes with PieCrust is super simple and, of course, completely optional. That’s why we’re only bringing it up here.

Administration Panel

To run the administration panel, type:

$ chef admin run
 * Running on http://localhost:8090/ (Press CTRL+C to quit)

Now copy paste the specified URL (http://localhost:8090/) into your favorite browser’s address bar and you should see “FoodTruck”, PieCrust’s administrative panel.

The navigation menu on the left should have:

  • The dashboard.
  • One entry for each of your page sources.
  • An interface to publish your website.

The Dashboard

This is where you can see a summary of your website, with links to see your list of already existing content.

If your website content is also stored in a version control system, you can see what’s currently edited in the “Work in Progress” section.

Right now, FoodTruck only supports Mercurial for source control.

Page Sources

For each source, you can list the existing pages:

Page Sources

Clicking on any link will let you edit that page.

You can also create a new page by clicking the appropriate entry in the left navigation menu. You’ll have to fill up information similar to what you specify to the chef prepare command:

New Page

Once you created a page, or click a link for an existing one, you can edit the page:

Edit Page

Note that if your website is stored in a VCS, you’ll have the ability to commit the page file if you want, but using the dropdown on the “Save” button:

Commit Page

Publishing

You also have a UI for running your publish targets. The descriptions shown for each target are taken from a description entry in their configuration settings.

Publish

Clicking any “Execute” button will publish your website using the corresponding target. You’ll see some notifications popup on the bottom right to indicate the progress of the operation.