NooseLadder Posted June 18, 2012 Share Posted June 18, 2012 Hi, If I build a site on a localhost server. Is it easy to transfer to a live server. Mainly concerned with the database? Or is it a simple export and import? Link to comment Share on other sites More sharing options...
apeisa Posted June 18, 2012 Share Posted June 18, 2012 Export and import is enough, no problems there. Only things you need to take care are file permissions and that you have same password hash in your site/config.php file. Link to comment Share on other sites More sharing options...
yellowled Posted June 18, 2012 Share Posted June 18, 2012 Beware that it might be a bit more work if you develop in a subdirectory locally but transfer it to the root directory on the remote server. Wasn't there a module to make that easier? Page Link Abstractor? Link to comment Share on other sites More sharing options...
ryan Posted June 19, 2012 Share Posted June 19, 2012 I always develop in a subdirectory and usually launch to root. While Page Link Abstractor is one way to resolve that, an even simpler way is to do a search/replace on your DB dump file before importing it to your live server/root installation. I use TextWrangler (free version of BBEdit), but any quality plain-text editor should work. So lets say you were developing a site locally in /subdir/ and you wanted to update all the /subdir/ links to be / (root) instead: Search for: ="/subdir/ Replace with: ="/ This should cover all <a> and <img> tags, like <a href="/subdir or <img src="/subdir. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now