The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Setting the public directory in a app folder

  • # December 24, 2012 at 5:11 am

    I have this folder for my app generated with [Yeoman]( “Yeoman”). So this is the folder tree

    – [name]
    – app/ (public)
    – test/ (public)
    – //other stuff

    I need to push all my files to pagoda box, but need to set the app folder to be the public. so when I visit _myapp.pagodabox.com_ I get the contents of the app folder.

    How do I do it?

    # May 14, 2015 at 1:46 pm

    This is more specific to Pagoda Box than CSS in general, but you can do it by setting your httpd_document_root in your Boxfile. Here’s an example:

      type: php
      httpd_document_root: app

    Your app directory will then become your “web root” and load when you go to your domain. Know however that you can only have one document root in a single web. So with this setting, the test directory won’t be accessible through your browser.

    If you needed that to be publicly accessible as well, you’d have to create a second web service and set its httpd_document_root to test.

    Here’s the link to their docs explaining the document root:
    Apache Settings in the Boxfile – Document Root

    # May 20, 2015 at 5:22 pm

    This reply has been reported for inappropriate content.

    @sanderson, pay attention to the dates when replying to a conversation. The OP was 2½ years ago. In general, if it’s been more than a few months, you should not be posting a reply.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed