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.

General Questions

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

tutorial:1


Reply

2 Posts   676 Views

Avatar
stackemup

22 October 2010 at 7:23pm Community Member, 2 Posts

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.

Avatar
stackemup

22 October 2010 at 7:35pm Community Member, 2 Posts

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.