K
K
Kirill Gostiev2015-11-02 14:55:38
git
Kirill Gostiev, 2015-11-02 14:55:38

What is the best way to develop a website?

How do you think it would be better to organize the development of the site? I used to always use Coda and work directly on the server. Now the question is, is this correct? Should I use a local server and work with GIT. Please share your experience on how you organize the workflow. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

6 answer(s)
Y
Yaroslav Lyzlov, 2015-11-02
@auramaker

I develop locally, then to git, then to the server.

O
OnYourLips, 2015-11-02
@OnYourLips

I used to always use Coda and work directly on the server. Now the question is, is this correct?
Wrong.
There is a good rule: the project must be launched in one action (for example, in one command vagrant up).
Therefore, the git repository should contain not only the project, but also automated instructions for setting up the working environment (setting up the web server, setting the initial data in the subd, etc.).
try puphpet

R
riot26, 2015-11-02
@riot26

This is how you can deploy different branches on the server (dev and production, for example)

R
Rafael™, 2015-11-02
@maxminimus

PHP has a built-in local server for testing

I
Ilya, 2015-11-02
@FoxT

Local development

X
Xtray, 2015-11-12
@Xtray

Servers are different ... Both in terms of hardware and software.
IMHO, it's easier to create a subdomain on the desired server and develop on it, so that later there are no surprises.
Well, it’s clear that if a big and serious project is git, and if it’s a simple business card site, then it doesn’t matter at all - even on a local, even on a server ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question