D
D
Dmitry Yakovlev2018-02-12 18:18:27
Yii
Dmitry Yakovlev, 2018-02-12 18:18:27

How to properly deploy someone else's finished project?

Hello.
I often encounter one problem - when you receive an archive with a project for revision, you need to deploy it.
The archive sometimes lacks server settings files (.htaccess, .conf), there is no vagrantfile, php init throws an error about the absence of main-local in the config folder.
How to properly debug such moments?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2018-02-12
@Gikelan

upon receipt of an archive with a project for revision,

Make the minimum requirements: the project is transferred via Github / Bitbucket, the presence of a simple instruction for deployment, attach configs (nginx.conf or Apache settings, if different from those recommended by Yii2 developers
) works without studying the code ...
Here on the Toaster, one asks questions about how to set up paths through .htaccess from the root of the Yii2 framework, what is there to talk about?
I don’t have a lot of work experience, but I had to install several projects without instructions, in one place I was lucky, the developer said as a keepsake which migration to mark as done, and in which place you need to roll the backup of the database, because you can’t think of it without super-strength ... Then I sat and made detailed instructions for future generations :)
  1. We look in the /web folder (for each of the applications) which configs are being pulled up and check their presence, if anything, we do it manually, if index.php is not generated for the init command, then take the standard ones from the framework from the /envoiroments/ folder
  2. Next, look carefully at the packages (if you can find them - find them, some have migrations), at the migrations and try to execute them
  3. Next, act according to the situation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question