-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When deploying, the nginx config on the production server needs to be adjusted as well!
- Loading branch information
1 parent
af2baff
commit 5e031ee
Showing
7 changed files
with
45 additions
and
49 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -449,19 +449,13 @@ jobs: | |
mkdir -p ~/.ssh | ||
touch ~/.ssh/known_hosts | ||
echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=" >> ~/.ssh/known_hosts | ||
git clone [email protected]:urbica/martin.git ~/martin | ||
git config advice.detachedHead false | ||
git checkout ed14582a8f5c3e11bfb165f3b012edccd929b479 | ||
name: Checkout | ||
git config --global advice.detachedHead false | ||
git clone --depth 1 --branch v0.13.0 [email protected]:maplibre/martin.git ~/martin | ||
name: Clone marting | ||
- restore_cache: | ||
keys: | ||
- v1-cargo-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }} | ||
- prepare_workspace | ||
- run: | ||
command: | | ||
apt update | ||
apt install -y openssl libssl-dev | ||
name: Install OpenSSL | ||
- run: | ||
command: | | ||
cargo build --release --target x86_64-unknown-linux-gnu | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,17 @@ steps: | |
- run: apt update -y && apt install -y nodejs npm | ||
- install_app_toolbelt | ||
- run: | ||
name: "Checkout" | ||
name: "Clone marting" | ||
command: | | ||
mkdir -p ~/.ssh | ||
touch ~/.ssh/known_hosts | ||
echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=" >> ~/.ssh/known_hosts | ||
git clone [email protected]:urbica/martin.git ~/martin | ||
git config advice.detachedHead false | ||
git checkout ed14582a8f5c3e11bfb165f3b012edccd929b479 | ||
git config --global advice.detachedHead false | ||
git clone --depth 1 --branch v0.13.0 [email protected]:maplibre/martin.git ~/martin | ||
- restore_cache: | ||
keys: | ||
- v1-cargo-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }} | ||
- prepare_workspace | ||
- run: | ||
name: "Install OpenSSL" | ||
command: | | ||
apt update | ||
apt install -y openssl libssl-dev | ||
- run: | ||
name: "Build" | ||
command: | | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,21 @@ | ||
--- | ||
# Database connection string | ||
connection_string: "postgres://postgres:postgres@db-postgis:5432/ehrenamtskarte" | ||
|
||
# Connection keep alive timeout [default: 75] | ||
keep_alive: 75 | ||
|
||
# The socket address to bind [default: 0.0.0.0:3000] | ||
listen_addresses: "0.0.0.0:3000" | ||
|
||
# Maximum connections pool size [default: 20] | ||
pool_size: 20 | ||
|
||
# Enable watch mode | ||
watch: false | ||
|
||
# Trust invalid certificates. This introduces significant vulnerabilities, and should only be used as a last resort. | ||
danger_accept_invalid_certs: false | ||
listen_addresses: '0.0.0.0:3000' | ||
|
||
# Number of web server workers | ||
worker_processes: 8 | ||
|
||
function_sources: | ||
physical_stores: | ||
id: physical_stores | ||
schema: public | ||
|
||
function: physical_stores | ||
# Database configuration. This can also be a list of PG configs. | ||
postgres: | ||
# Database connection string. You can use env vars too, for example: | ||
# $DATABASE_URL | ||
# ${DATABASE_URL:-postgresql://postgres@localhost/db} | ||
connection_string: 'postgres://postgres:postgres@db-postgis:5432/ehrenamtskarte' | ||
|
||
# Associative arrays of function sources | ||
functions: | ||
physical_stores: | ||
schema: public | ||
function: physical_stores | ||
physical_stores_clustered: | ||
schema: public | ||
function: physical_stores_clustered |
This file contains 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