V
V
VisualIdeas2017-05-10 15:39:37
PHP
VisualIdeas, 2017-05-10 15:39:37

What is the correct path for the working environment on the local machine and remote servers?

Before that, I developed sites according to a very simple scheme:
Mac + MAMP PRO + uploading everything via FTP to VPS with VestaCP - everything was fine in principle.
But at the moment this was not enough and I would like the following:

  • Local environment = analogue of the server
  • Simple deployment of files and databases (with databases it’s more difficult - you don’t need to overwrite what is on the server and only make changes to the database structure, for example, add a field or index)

What I tried to do:
Deployed a Vagrant machine from Phalcon https://github.com/phalcon/box (just getting acquainted with this framework)
But the question arose: Again the server, install the panel, configure everything ....
There were 2 questions:
1) On local development: Raise 1 vagrant box and all sites in it? In principle, is it convenient enough or does each site have its own vagrant box? I have dozens of sites ..... Or somehow combine them into groups?
2) How to deploy (ideally) the same environment on the VPS and update it also automatically?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
D3lphi, 2017-05-10
@D3lphi


On local development: Raise 1 vagrant box and all sites in it? In principle, is it convenient enough or does each site have its own vagrant box? I have dozens of sites ..... Or somehow combine them into groups?
No, ideally, for each "site" you need to raise your own virtual machine. Otherwise, what's the point? The whole point of Vagrant is to have a separate, independent environment from other projects.
How to deploy (ideally) the same environment on the VPS and update it also automatically?
Look towards Docker . It allows you to create "images" of the system and instantly deploy them anywhere.

R
romy4, 2017-05-10
@romy4

1. Or combine them somehow in groups?
shared folder in which the server with sites looks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question