21487 Posts in 5783 Topics by 2621 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 736 Views |
-
Automate dev/build in Live environment

19 January 2011 at 7:44am
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?
-
Re: Automate dev/build in Live environment

19 January 2011 at 8:16am
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.
-
Re: Automate dev/build in Live environment

19 January 2011 at 8:38am
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.
| 736 Views | ||
|
Page:
1
|
Go to Top |

