21310 Posts in 5739 Topics by 2604 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 207 Views |
-
Move the assets path

6 February 2013 at 4:33pm Last edited: 6 February 2013 4:33pm
Hi,
Does SS 2.4 or 3 have the ability to move the assets path outside the root? Microsoft deployment using Web Deploy/WebMatrix always shows site differences due to assets and this results in:
- having to manually uncheck all assets/ files and folders every time I do a deploy
- the risk of updating production assets by mistake
- the inability to use the "delete remote files" option to clean deleted code because it will also remove assetsThanks!
-
Re: Move the assets path

9 February 2013 at 3:23pm
You can always make assets/ a symlink or a mount to another drive.
-
Re: Move the assets path

11 February 2013 at 11:25am
Thanks Will. This is on Windows using Web Deploy. I managed to get the folder outside of root using "mklink /D" command. As far as Web Deploy is concerned though it's still a folder and will delete it but I've managed to get around that by using -skip option with msdeploy.exe.
I've now got TeamCity doing automated checkouts and deploy of my SilverStripe app to remote IIS server using MSBuild and Web Deploy. Could be handy information for anyone looking to automate Windows deploys. Any suggestions on where to briefly document that? I'll be extending it shortly to handle other pieces like backups, rollbacks and calling dev/build/flush.
Cheers
-
Re: Move the assets path

11 February 2013 at 11:47am Last edited: 11 February 2013 1:16pm
Could be a very handy document. My suggestion would be to write it up on doc.silverstripe.org (already docs for WebPlatform so perhaps we have a Web Deploy page). Makes sense to do it on doc.ss rather than a site like ssbits.com as it would be a popular choice for windows developers.
Contributing documention is straightforwardish (http://doc.silverstripe.org/framework/en/trunk/misc/contributing/documentation). Simply fork the framework and write your page in Markdown.
-
Re: Move the assets path

11 February 2013 at 11:57am
Sweet. When I've pieced it all together I'll put something up. Cheers Will.
| 207 Views | ||
|
Page:
1
|
Go to Top |


