Answer the question
In order to leave comments, you need to log in
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
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.
Write yourself a Makefile that automates all the necessary tasks.
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;' # перезапускаем юнит
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question