Jump to:

23376 Posts in 18214 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Automate dev/build in Live environment

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 975 Views
  • streetdaddy
    Avatar
    32 Posts

    Automate dev/build in Live environment Link to this post

    Is there any way I can automate dev/build in Live environment?

    My situation is that I have automated deployment processes for our live servers that rsync a tag of a project repo, and also perform other functions like chmod'ing directories, flushing caches, etc.

    I'd also like the deploy process to be able to run a dev/build at the end of the deploy, but in the live environment this forces redirect to the login page. Is there any other way to do this? eg. include a 'secret' param on the URL to allow it, or allow it only from a specific IP. Does anything like this exist, or will I need to hack it into the core or extend something?

  • swaiba
    Avatar
    Forum Moderator
    1785 Posts

    Re: Automate dev/build in Live environment Link to this post

    dev/build only needs a login if the site is in live mode, you could set the dev mode via a config file... update that file automatically before the dev/build to "dev", then update it again when the page contain "Database Built!" (or whatever it says) - to avoid the any error in the build. Hope this helps.

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: Automate dev/build in Live environment Link to this post

    You could use sake.

    Assuming you're in the root directory of your SilverStripe installation, running sake dev/build will build the database for you, and doesn't require a login or for the site to be in dev mode.

    975 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.