Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » synchronize remote and localhost

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1432 Views
  • quicked
    Avatar
    Community Member
    32 Posts

    synchronize remote and localhost Link to this post

    When i was flushing my localhost I was getting an error saying could not connect to the db trying to use my remote connection string. It turns out that because I had a file remoteCopy_of_configure.php that SS was trying to "compile" that and use it a the connection. I changed the name to _configureLocal.php and SS no longer tries to use it.

    Is there a better way to sync remote and local?

  • quicked
    Avatar
    Community Member
    32 Posts

    Re: synchronize remote and localhost Link to this post

    When uploading from Windows to Linux their is a problem with db names. Because Windows is not case sensitive phpmyadmin exports the table names all in lower case. What I ended up doing was build the db remotely, the exporting the data only locally, then search and replacing every table name to CamelCase.

    Is there any easier way?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: synchronize remote and localhost Link to this post

    check out http://doc.silverstripe.com/doku.php?id=debug. You can set you localhost server to a dev server ( Director::set_dev_servers() ) and then use Director::isLive() and Director::isDev() to use different _config.php files

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