mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-21 15:56:27 +00:00
use env var for startup script
This commit is contained in:
parent
35ba25ba9e
commit
a257d2cefb
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [1.5.3] - 2022-06-07
|
||||
|
||||
### Changed
|
||||
|
||||
- Use the value from the `MEMCACHE` env variable in startup script.
|
||||
|
||||
## [1.5.2] - 2022-06-07
|
||||
|
||||
### Added
|
||||
|
2
backend/Cargo.lock
generated
2
backend/Cargo.lock
generated
@ -398,7 +398,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cryptgeon"
|
||||
version = "1.5.2"
|
||||
version = "1.5.3"
|
||||
dependencies = [
|
||||
"actix-files",
|
||||
"actix-web",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "cryptgeon"
|
||||
version = "1.5.2"
|
||||
version = "1.5.3"
|
||||
authors = ["cupcakearmy <hi@nicco.io>"]
|
||||
edition = "2021"
|
||||
|
||||
|
10
entry.sh
10
entry.sh
@ -1,10 +1,12 @@
|
||||
#!/bin/ash
|
||||
#!/bin/sh
|
||||
|
||||
echo "Waiting for memcached"
|
||||
|
||||
while ! nc -z -w 1 memcached 11211; do
|
||||
HOST=$(echo $MEMCACHE | cut -d: -f1)
|
||||
PORT=$(echo $MEMCACHE | cut -d: -f2)
|
||||
echo "Waiting for memcached at $HOST:$PORT"
|
||||
while ! nc -z -w 1 $HOST $PORT; do
|
||||
sleep 1
|
||||
echo "..."
|
||||
echo "retrying..."
|
||||
done
|
||||
|
||||
echo "Starting server"
|
||||
|
Loading…
Reference in New Issue
Block a user