mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
set host
This commit is contained in:
parent
0511635443
commit
5506939678
4 changed files with 32 additions and 23 deletions
23
.github/workflows/master.yaml
vendored
23
.github/workflows/master.yaml
vendored
|
@ -1,23 +0,0 @@
|
|||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: 'master'
|
||||
# - run: docker-compose build
|
||||
# - run: docker-compose run web rake db:setup
|
||||
# - run: docker-compose run web bin/run-tests
|
||||
- uses: akhileshns/heroku-deploy@v3.12.13
|
||||
with:
|
||||
branch: "master"
|
||||
heroku_email: ${{secrets.HEROKU_EMAIL}}
|
||||
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
|
||||
heroku_app_name: "stadtratmonitor"
|
|
@ -39,4 +39,6 @@ Rails.application.configure do
|
|||
|
||||
# flush stdout in order to get logs in realtime
|
||||
$stdout.sync = true
|
||||
|
||||
config.hosts = "stadtratmonitor.codeforleipzig.de"
|
||||
end
|
||||
|
|
|
@ -75,4 +75,6 @@ Rails.application.configure do
|
|||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
config.hosts = "stadtratmonitor.codeforleipzig.de"
|
||||
end
|
||||
|
|
28
docker-compose.yml.separated
Normal file
28
docker-compose.yml.separated
Normal file
|
@ -0,0 +1,28 @@
|
|||
version: "3.7"
|
||||
volumes:
|
||||
elasticsearch:
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
volumes:
|
||||
- .:/app
|
||||
ports:
|
||||
- "3000:3000"
|
||||
# links:
|
||||
# - elasticsearch
|
||||
environment:
|
||||
ELASTICSEARCH_URL: 'http://leipzig-giesst.de:9200'
|
||||
elasticsearch:
|
||||
build: ./docker/elasticsearch
|
||||
environment:
|
||||
- discovery.type=single-node
|
||||
ports:
|
||||
- "9200:9200"
|
||||
volumes:
|
||||
- elasticsearch:/usr/share/elasticsearch/data
|
||||
elastichq:
|
||||
image: elastichq/elasticsearch-hq
|
||||
ports:
|
||||
- "5000:5000"
|
||||
# links:
|
||||
# - elasticsearch
|
Loading…
Reference in a new issue