E
E
e_asphyx2016-01-29 01:23:56
JavaScript
e_asphyx, 2016-01-29 01:23:56

What are the recipes for deploying a web project in Go?

So, at the moment I'm developing a project in Go and Angular 2 for the frontend. And this is my first experience in web development in general. I used to do C++ and C for embedded, but circumstances have changed. So, at the moment, the “deployment” procedure looks something like this:

ssh HOST
go get PACKAGE
cd $GOPATH/PACKAGE
npm install
tsc
sass --update scss:static/css

For these operations, you can write a Makefile, although this does not make much sense, since the main purpose of make is to keep track of file modification times, and the utilities used do this themselves.
Well, the issue of gluing and minifying JS files has not yet been covered (now dynamic loading is used using SystemJS, as in the tutorial for Angular 2), but I left it for later, because, frankly, I'm afraid to touch it.
In short, I ask for advice on how to bring this to mind.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-01-29
Protko @Fesor

question of merging and minifying JS files

You are already using System.js, so you can use system.js based bundlers: https://github.com/systemjs/builder
We collect locally or on a CI server in the form of a tar.gz archive, go to the server and unpack.
tar.gz can be replaced with deb/rpm packages, docker images and whatever.

P
pomeo, 2016-01-29
@pomeo

Take a capistrano and that's it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question