This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:
- Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
- Windows 10 on my PC to work.
| { stdenv, lib, bash, callPackage, writeText, makeWrapper, writeScript, dotnet-sdk, | |
| patchelf, libunwind, coreclr, libuuid, curl, zlib, icu }: | |
| let | |
| config = "Staging"; | |
| project = "RazorCx.Api"; | |
| target = "linux-x64"; | |
| rpath = stdenv.lib.makeLibraryPath [ libunwind coreclr libuuid stdenv.cc.cc curl zlib icu ]; |
| #!/bin/sh | |
| # Wrapper script for launching a qemu instance for Windows 10. | |
| # | |
| # This script is used in a Dell XPS 13 host. | |
| # | |
| # Usage: win [custom_qemu_options] | |
| # | |
| # Example: | |
| # Assigning host USB device to guest VM |
| { pkgs ? import <nixpkgs> {} }: | |
| let | |
| # To use this shell.nix on NixOS your user needs to be configured as such: | |
| # users.extraUsers.adisbladis = { | |
| # subUidRanges = [{ startUid = 100000; count = 65536; }]; | |
| # subGidRanges = [{ startGid = 100000; count = 65536; }]; | |
| # }; |
| open System | |
| open System.IO | |
| open System.Net | |
| open System.Text.Json | |
| open System.Collections.Generic | |
| open System.Security.Cryptography | |
| /// Taken from hash.cc in the nix codebase | |
| /// https://github.com/NixOS/nix/blob/a7540294cfae82c098e8691cd5212a9184add574/src/libutil/hash.cc | |
| module Base32 = |
Revision: 06.08.2023, https://compute.toys/view/407
fn sdSphere(p: vec3f, r: f32) -> f32 {
return length(p) - r;
}Revision: 06.08.2023, https://compute.toys/view/398
fn sdCircle(p: vec2f, r: f32) -> f32 {
return length(p) - r;
}| # Edit this configuration file to define what should be installed on | |
| # your system. Help is available in the configuration.nix(5) man page | |
| # and in the NixOS manual (accessible by running ‘nixos-help’). | |
| { config, pkgs, ... }: | |
| { | |
| nix = { | |
| package = pkgs.nixUnstable; | |
| extraOptions = '' |