junichi11 / cakephp-netbeans

CakePHP support in NetBeans
http://cakephp.org
71 stars 18 forks source link

Update existing cakePHP Project to later Version #18

Closed crapp closed 11 years ago

crapp commented 11 years ago

Hi,

I started some weeks ago with my first cakePHP project using netbeans and your plugin. So far everything works quite nicely. Today I realized the version of cakePHP I am using is 2.2.4. I would like to update to 2.2.7 but it seems like the plugin does not offer an option to do this. Is it safe to download the sources and extract them in the same folder? Wouldn't this be a good option for the plugin?

Best Regards Christian

junichi11 commented 11 years ago

Hi,

I think it is dangerous to update current version to new version with plugin because not all users are using a version control system. So, I didn't provide that feature. You can update such as the following manually :

  1. create a new project (e.g. version 2.2.7)
  2. remove app directory of new version (e.g. 2.2.7)
  3. copy app directory from old version (e.g. 2.2.4) to new version (e.g. 2.2.7)
  4. testing the new version

Thanks.

crapp commented 11 years ago

Hi,

thanks for your quick answer. The problem is I am using a version control system. If I start a new project I would have to do this in a new directory. Not so easy to get all the data back to the other directory. But you are right. Probably I just have to keep my apps directory and config. I try to do this manually with rsync or something like that. Thank you very much for this great plugin!!

Regards

junichi11 commented 11 years ago

Hi Christian,

If you manage the whole CakePHP with git (i.e. create cakephp with git clone), perhaps, you can update with the following: (first create branch for old version tag) create new branch, and merge the new tag. But I guess that you don't like that. You should post the your problem(how to update cake version using version control system) to CakePHP Community. You might get how to resolve your problem ;)

Regards, Junichi