Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

How to dev/build?flush=1 on live site in windows environment


Go to End


4 Posts   3679 Views

Avatar
Beedubsss

Community Member, 7 Posts

23 August 2016 at 10:05pm

Hey SS Community,

I am currently working on a Silverstripe project in a windows environment for a client. They use their own internal auto deployment system to push changes to live sites. The issue that I am having is that after a deployment is made, I need to rebuild the database and flush the cache to ensure the site doesn't break and the updated changes show. Usually in a linux environment, I would just use sake to do this for me but this isn't available for windows. Does anything have any suggestions or ideas on a good process for deployments to a Silverstripe site hosted in a windows environment.

Cheers

Avatar
Vlad Belfort

Community Member, 55 Posts

24 August 2016 at 4:27am

You could add that to the URL and build / flush like that :

website.com/dev/build?flush=1

Avatar
Beedubsss

Community Member, 7 Posts

24 August 2016 at 7:05am

This is not possible due to the site being in live mode so during the deployment process when trying to rebuild the database and flushing the cache, the deployment agent is not authenticated to make the request.

Avatar
ZarockNZ

Community Member, 17 Posts

21 September 2016 at 4:33pm

sake /dev/build is just a shortcut way of doing: php framework/cli-script.php dev/build

I'm not familiar with Windows hosting, but I would think/hope that there would be a way in the deploy script to run the command php framework/cli-script.php dev/build in the root directory of the site after the deploy.