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

Can't get dev/build to re-build database


Reply

4 Posts   2938 Views

Avatar
Tim_Donaldson

24 October 2010 at 11:06am Community Member, 9 Posts

I'm going through the SS tutorial at the moment and I can't seem to re-build the database when adding a new template for the homepage. I've been trying: http://timdonaldson.com/silverstripe/dev/build?flush=1

The thing is that the install on my sever doesn't even have a 'dev' directory. The closest thing I can find is 'localhost/sapphire/dev/.

Cheers for any help.

Tim

Avatar
Carbon Crayon

24 October 2010 at 12:27pm (Last edited: 24 October 2010 12:29pm), Community Member, 598 Posts

Hi Tim,

is the site working at all? (EDIT: just checked looks like it's not).

Don't worry about there not being a dev folder, there isn't one, all actions in SS are directed to main.php via the htaccess file. I notice that your SS install isn't in the root of your site, so make sure that line 10 of your .htaccess file reads:

RewriteBase /silverstripe

Aram

---------------------------------------------------------------------------------

www.ssbits.com - Your one stop SilverStripe learning resource

Avatar
Tim_Donaldson

24 October 2010 at 2:12pm (Last edited: 24 October 2010 2:18pm), Community Member, 9 Posts

Hey Aram,

http://timdonaldson.com/silverstripe/ is working for me, although pretty slow because it's hosted on Mediatemple without being cached — I'm just using as my test server until I get my head around things.

Cheers for explaining the lack on dev folder. Am I adding that line to my root .htaccess folder or the silverstripe folder? What does Rewrite do?

Avatar
Tim_Donaldson

28 October 2010 at 3:28pm Community Member, 9 Posts

Hi Aram, You were probably right about the site not being live. I received an email from MT yesterday saying that they had had problems with Hard drives failing in their servers over the weekend.

Tim