Jump to:

23486 Posts in 18995 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » tutorial:1

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: 671 Views
  • stackemup
    Avatar
    Community Member
    2 Posts

    tutorial:1 Link to this post

    re:
    Every page type also has a database table corresponding to it. Every time we modify the database, we need to rebuild it. We can do this by going to http://localhost/dev/build?flush=1. It may take a moment, so be patient. This add tables and fields needed by your site, and modifies any structures that have changed. It does this non-destructively - it will never delete your data.

    As we have just created a new page type, SilverStripe will add this to the list of page types in the database.

    in particular: http://localhost/dev/build?flush=1

    I am trying to achieve this on a online site. but it seems to come up with a 'page not found'

    using path: http:/my_site.com/sapphire/dev/build?flush=1

    I can;t seem to get it to work for some reason.

  • stackemup
    Avatar
    Community Member
    2 Posts

    Re: tutorial:1 Link to this post

    aha I found the answer, I was looking for the folder structure /dev/build but only found he one within the sapphire directory.

    so the correct syntax for this is to append: /dev/build?flush=1 to your mainsites url like so:

    http://www.mysite.com/dev/build?flush=1

    This indeed updates the database.

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