This commit is contained in:
Joerg Reichert 2023-04-07 14:28:10 +02:00
parent 0511635443
commit 5506939678
4 changed files with 32 additions and 23 deletions

View file

@ -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"

View file

@ -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

View file

@ -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

View 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