Jump to:

23490 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Move the assets path

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: 487 Views
  • Dave L
    Avatar
    Community Member
    56 Posts

    Move the assets path Link to this post

    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 assets

    Thanks!

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Move the assets path Link to this post

    You can always make assets/ a symlink or a mount to another drive.

  • Room9
    Avatar
    Community Member
    19 Posts

    Re: Move the assets path Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Move the assets path Link to this post

    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.

  • Room9
    Avatar
    Community Member
    19 Posts

    Re: Move the assets path Link to this post

    Sweet. When I've pieced it all together I'll put something up. Cheers Will.

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