The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Setting the public directory in a app folder

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #41570

    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?


    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.