Yii Framework Forum: Best way to deploy your code from local to production? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Best way to deploy your code from local to production? Rate Topic: -----

#1 User is offline   kevinkt 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 17-November 15

Posted 03 February 2016 - 10:31 PM

Title is very self explanatory, but how do you guys deploy your code from your local machine to the production server? I use a VPS myself using a standard Cpanel setup.
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 04 February 2016 - 02:40 AM

I am using Deployer - and have written a blog post about using it: http://jacmoe.dk/blo...i-with-deployer
"Less noise - more signal"
0

#3 User is offline   kevinkt 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 42
  • Joined: 17-November 15

Posted 06 February 2016 - 02:42 AM

Jacmoe, does it deploy your mysql database as well?
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 February 2016 - 03:30 AM

It does migrations.
That is the only way of mysql deployment that I would recommend.
"Less noise - more signal"
1

#5 User is offline   yii new expert 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 63
  • Joined: 30-May 12
  • Location:pune, india

Posted 11 May 2016 - 01:17 AM

we can use jenkins - Contious deployment process by writting ANT script with required instructions.
0

#6 User is offline   oligalma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 419
  • Joined: 07-April 12
  • Location:Spain

Posted 24 May 2016 - 08:27 PM

I use FTP (e.g FileZilla) to deploy my Yii 1 application to production. Can anyone tell me if FileZilla is a good way to deploy in Yii 1? And Yii 2?
0

#7 User is offline   Yuv 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 15-April 15

Posted 19 June 2016 - 04:24 AM

View Postoligalma, on 24 May 2016 - 08:27 PM, said:

I use FTP (e.g FileZilla) to deploy my Yii 1 application to production. Can anyone tell me if FileZilla is a good way to deploy in Yii 1? And Yii 2?


No it is not a good way.. you should consider using a version control and then pull the production branch
1

#8 User is offline   oligalma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 419
  • Joined: 07-April 12
  • Location:Spain

Posted 27 June 2016 - 02:54 PM

View PostYuv, on 19 June 2016 - 04:24 AM, said:

No it is not a good way.. you should consider using a version control and then pull the production branch


Thank you for your answer. But I'm completely alone in the project. In this case, do I need to use version control too?
0

#9 User is offline   Yuv 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 15-April 15

Posted 13 September 2016 - 12:22 AM

View Postoligalma, on 27 June 2016 - 02:54 PM, said:

Thank you for your answer. But I'm completely alone in the project. In this case, do I need to use version control too?



Yes you should. I work alone on many projects too and i use git or svn for all of them.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users