Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

mazgi-showcase/202001.express-typescript-build-with-webpack

Repository files navigation

202001.express-typescript-build-with-webpack

How to run

Download cargo-make

Linux:

export CARGO_MAKE_VERSION="0.26.1" \
&& curl -sL https://github.com/sagiegurari/cargo-make/releases/download/${CARGO_MAKE_VERSION}/cargo-make-v${CARGO_MAKE_VERSION}-x86_64-unknown-linux-musl.zip \
| busybox unzip -p - cargo-make-v${CARGO_MAKE_VERSION}-x86_64-unknown-linux-musl/cargo-make > bin/cargo-make && chmod a+x bin/cargo-make

macOS:

export CARGO_MAKE_VERSION="0.26.1" \
&& curl -sL https://github.com/sagiegurari/cargo-make/releases/download/${CARGO_MAKE_VERSION}/cargo-make-v${CARGO_MAKE_VERSION}-x86_64-apple-darwin.zip \
| bsdtar --strip-components 1 -C bin/ -xvf - cargo-make-v${CARGO_MAKE_VERSION}-x86_64-apple-darwin/cargo-make

Set up the project via cargo-make

bin/cargo-make make --makefile tasks/setup-project.toml

Update the .env file with your UID/GID and IP addresses

Like below:

UID=1000
GID=100
BIND_IP_ADDR=192.168.0.1
PUBLIC_IP_ADDR=192.168.0.1
UID=1000
GID=100
BIND_IP_ADDR=192.168.0.1
PUBLIC_IP_ADDR=203.0.113.1

Run via Docker Compose

docker-compose up

How to build

bin/cargo-make make --makefile tasks/build-production-images.toml