Skip to content
Snippets Groups Projects

MVP build process

Merged Erick Hitter requested to merge 1-add-build into master
Compare and Show latest version
2 files
+ 26
5
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 11
4
@@ -51,9 +51,9 @@ git clone -q --recursive --depth 1 https://github.com/nginx/nginx.git -b "$NGINX
# Configure nginx
echo ""
echo "CONFIGURE NGINX"
cd "$NGINX_SRC_DIR/auto" || exit
cd "$NGINX_SRC_DIR" || exit 1
./configure \
./auto/configure \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
@@ -97,5 +97,12 @@ cd "$NGINX_SRC_DIR/auto" || exit
echo ""
echo "BUILDING NGINX"
echo "Using $(nproc) jobs"
make -j"$(nproc)"
"$NGINX_SRC_DIR/objs/nginx -V"
make
if [[ ! -f "$NGINX_SRC_DIR/objs/nginx" ]]; then
exit 1
fi
# Verify build works
cd "$NGINX_SRC_DIR/objs" || exit 1
./nginx -V
Loading