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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Running ~/db/build on web server


Reply


2 Posts   1996 Views

Avatar
Trimaran

Community Member, 6 Posts

24 February 2009 at 8:26am

Edited: 24/02/2009 8:26am

Hi,

I would like to rebuild the database on the web server. http://www.mywebsite.ch/mydatabasename/build?flush=1 doesn't work.
Any recommandation? Thanks!

In case it helps, the content of my .htaccess file is:

### SILVERSTRIPE START ###
<IfModule mod_dir.c>
DirectorySlash Off
</IfModule>

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###

Avatar
Willr

Forum Moderator, 5513 Posts

24 February 2009 at 9:13am

No you actually just run /db/build/ you dont need to enter your database name eg - http://www.site.com/db/build?flush=1