This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) SSH into the server as a root user | |
2) Install the required dependencies. Run apt install cmake libpcre3 libpcre3-dev | |
3) Run wget "https://nginx.org/download/nginx-$(nginx -v 2>&1 | awk -F/ '{print $2}' | sed 's/(Ubuntu)//' | tr -d '[:space:]').tar.gz" | |
4) Run tar -xzf nginx-{{ version }}.tar.gz | |
5) Run git clone --recurse-submodules -j8 https://github.com/google/ngx_brotli | |
6) cd ngx_brotli/deps/brotli && mkdir out && cd out | |
7) Run cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_CXX_FLAGS="-Ofast -m64 -march=native -mtune=native -flto -funroll-loops -ffunction-sections -fdata-sections -Wl,--gc-sections" -DCMAKE_INSTALL_PREFIX=./installed .. | |
8) Run cmake --build . --config Release --target brotlienc | |
9) Run cd ~/nginx-{{ version }} | |
10) Run ./configure --add-module=/root/ngx_brotli |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NITRO_PRESET=cleavr npm run build --production | |
npm WARN config production Use `--omit=dev` instead. | |
> build | |
> ./node_modules/.bin/nuxt build | |
Nuxi 3.0.0-rc.10 20:38:21 | |
Nuxt 3.0.0-rc.10 with Nitro 0.5.4 20:38:21 | |
(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠦ : timing config:load:flatten Completed in 3ms | |
WARN Cannot extend config from cleavr in /Users/anish/Projects/nuxt-app/app 20:38:22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table.text('two_factor_secret').nullable(); | |
table.text('two_factor_recovery_codes').nullable(); |