E
E
ezpy2017-07-25 18:33:58
go
ezpy, 2017-07-25 18:33:58

How to make convenient development?

Hello, I'm working on an application on vuejs + golang.
Most of it I did what could be done locally on a PC.
Now I bought a server, a domain, and I wonder how convenient it is to make the development process for myself.
Just now you need to do this
- Change in the go application, rebuild, disconnect to the application on the server, re-upload the new one and run
- Change in vuejs, you need to rebuild the application (It takes 30 seconds) and re-upload the files to the server
How will it be more convenient to automate the development process?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anton Anton, 2017-07-25
@ezpy

Get it on the git server, develop locally, with a certain degree of readiness to "upload to prod" from the same repository.
Well, a small deployment script that does everything you need.

A
Alexander Pavlyuk, 2017-07-25
@pav5000

Write yourself a Makefile that automates all the necessary tasks.

E
evnuh, 2017-07-25
@evnuh

Actually, automate all processes. You can do this using build systems (cmake, make, etc.) or using a shell script, or maybe your IDE immediately supports custom build instructions, then you can use them.
for example, a piece from my script:

rsync -vazR project_folder [email protected]${HOST}:/opt/go/src # заливаем файлы на сервер
ssh [email protected]${HOST} 'go build -v project_folder' # билдим
ssh [email protected]${HOST} 'systemctl restart project;' # перезапускаем юнит

P
Pavel Ivanov, 2017-07-26
@eastywest

I advise you to take a closer look at Docker.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question