Fix deploy cookie domain
This commit is contained in:
parent
6286352b5e
commit
cc5af850ce
|
@ -2,9 +2,11 @@
|
|||
|
||||
# this only works on macos for now, cross compilation toolchain from https://github.com/messense/homebrew-macos-cross-toolchains
|
||||
|
||||
set -e;
|
||||
|
||||
cargo update;
|
||||
|
||||
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc cargo build --release --target x86_64-unknown-linux-gnu;
|
||||
DOMAIN=evieippolito.com CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc cargo build --release --target x86_64-unknown-linux-gnu;
|
||||
|
||||
scp target/x86_64-unknown-linux-gnu/release/evie kline@augustkline.com:/home/kline/;
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ impl BlogStateInner {
|
|||
async fn new() -> anyhow::Result<Self> {
|
||||
let username = env!("INIT_USER_NAME").to_string();
|
||||
let password = env!("INIT_USER_PASSWORD").to_string();
|
||||
let domain = env!("DOMAIN").to_string();
|
||||
let domain = option_env!("DOMAIN").unwrap_or("localhost").to_string();
|
||||
let db = BlogDb::new(&username, password.clone()).await?;
|
||||
Self::add_initial_assets(&db).await?;
|
||||
Self::add_initial_pages(&db).await?;
|
||||
|
|
4
stage.sh
4
stage.sh
|
@ -2,9 +2,11 @@
|
|||
|
||||
# this only works on macos for now, cross compilation toolchain from https://github.com/messense/homebrew-macos-cross-toolchains
|
||||
|
||||
set -e
|
||||
|
||||
cargo update;
|
||||
|
||||
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc cargo build --release --target x86_64-unknown-linux-gnu;
|
||||
DOMAIN=evieippolito.com CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc cargo build --release --target x86_64-unknown-linux-gnu;
|
||||
|
||||
scp target/x86_64-unknown-linux-gnu/release/evie kline@augustkline.com:/home/kline/;
|
||||
|
||||
|
|
Loading…
Reference in New Issue