Jump to:

3460 Posts in 1064 Topics by 739 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Stage Version of a Site

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1583 Views
  • Aug
    Avatar
    Community Member
    7 Posts

    Stage Version of a Site Link to this post

    Is there a way to have a site always showing the stage version of a site without logging in?

  • Aug
    Avatar
    Community Member
    7 Posts

    Re: Stage Version of a Site Link to this post

    I can not be the only one who has requested this am I?

  • Aug
    Avatar
    Community Member
    7 Posts

    Re: Stage Version of a Site Link to this post

    I did find a way to force the site into stage mode, however it circumvented the need to login. ultimately my solution was to change the .htaccess file to append stage=Stage to every url. A waste of processing, but your staging environment should be low traffic anyhow.

    Our stage server is on the same server as the production server. They share a database, and a symbolic link to the assets directory.

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: Stage Version of a Site Link to this post

    An easier way to do this would be to place "Session::set('currentStage', 'Stage');" in your _config.php file.

    1583 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.