From 378a0de1b1493c0bcc19d7b73a980393da703c33 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 5 Jan 2019 00:41:49 +0100 Subject: [PATCH] Update Path to Cargo --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index e545812..e8b4d75 100755 --- a/scripts/install +++ b/scripts/install @@ -159,7 +159,7 @@ chown -R $app: $final_path # App settings ( cd $final_path && sudo -u "$app" curl -sSf -L https://static.rust-lang.org/rustup.sh | sh -s -- -y --default-toolchain=nightly ) - export PATH="$PATH:/var/www/$app/.cargo/bin:/var/$app/.local/bin:/usr/local/sbin:/root/.cargo/env" + export PATH="$PATH:/var/www/$app/.cargo/bin:/var/$app/.local/bin:/usr/local/sbin:/root/.cargo/env:$HOME/.cargo/bin" export FEATURES=postgres ( cd $final_path/$app && sudo -u "$app" cargo install diesel_cli --no-default-features --features postgres --version '=1.3.0' ) ( cd $final_path/$app && diesel migration run )