Jump to content

Recommended Posts

At the moment I edit the live files of my website using FTP which means changes take affect instantly. This is bad for numerous reasons.

 

I figured that I would have to duplicate my website files and edit them instead to make it so I'm not editing the live files. What's the best way to do this?

 

Would you create a "dev" directory, place the duplicated website files there, edit them, then upload when your happy with the update?

Link to comment
https://forums.phpfreaks.com/topic/247344-editing-unlive-files/
Share on other sites

Ideally you would have three servers; development, QA and production. The QA server, although not essential, would be as identical to the production server set-up as possible. It's less likely you can do this on DEV, as I imagine you work from Windows and have a Linux-based host. Never the less, you want a fully working development environment you can test changes as you work. If you have a QA environment, first you would upload there to test how they perform within a similar set-up. If all is well, you would then roll to the production servers. Obviously if you don't have a QA server you would just roll to production.

Yes, I have an ubuntu server and I'm working from a windows computer.

 

I only have one server so would having a dev and public folder be fine? I could password protect the dev folder.

I would also have to duplicate all databases, should I set up another MYSQL account?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.