S
S
slip312014-05-10 11:47:02
Yii
slip31, 2014-05-10 11:47:02

Yii2 and deploy to server?

How to organize the "layout" on the server?
I am developing on yii2 in development mode. I collected some master, uploaded it to bitbucket - that's it, there is a ready-made branch that can be uploaded
to a working server. What to do next? How to turn it into production? Or just keep the branch in production and already attach your development to it?
So, what is next? What kind of tools to put, such as capistrano (by the way, where is it placed?)? And on request, will it take from the bitbucket.production.my-best-site branch and upload it to the production
server? And what to do with bases? At the moment there is a base with thirty tables. How to create (and create further) migrations from them? Or fill in the dump,
and do the next steps with migrations?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Zelenin, 2014-05-10
@slip31

First deploy:

git clone
composer install
yii init
#правите локальные конфиги (прописываете базу)
yii migrate

the following deployments:
git pull
composer install
yii migrate

create migrations
manually and edit the migration file

N
nikosid, 2016-04-09
@nikosid

I liked using https://github.com/yii2tech/selfupdate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question