Browse Source

mv project to other organization

master
fedy95 4 years ago
parent
commit
94814cc8f9
  1. 4
      README.md
  2. 2
      config/services.yaml
  3. 2
      devops/dist/.env-dist
  4. 2
      devops/docker/.env
  5. 6
      docker-compose.yaml
  6. 2
      src/Service/Endpoint/WeatherHistory.php
  7. 2
      tests/acceptance.suite.yml

4
README.md

@ -1,6 +1,6 @@
# weather_site
# jsonrpc-weather-frontend
Front for a weather_history project
Front for a jsonrpc-weather-backend project
### Requirements

2
config/services.yaml

@ -1,5 +1,5 @@
parameters:
weather_history_server: '%env(string:WEATHER_HISTORY_SERVER)%'
weather_backend_server: '%env(string:WEATHER_BACKEND_SERVER)%'
services:
_defaults:

2
devops/dist/.env-dist

@ -1,4 +1,4 @@
APP_ENV=dev
APP_SECRET=a1def1573d162b7d97ed994df9d37949
WEATHER_HISTORY_SERVER=http://weather_history_nginx_1:80
WEATHER_BACKEND_SERVER=http://jsonrpc-weather-backend_nginx_1:80

2
devops/docker/.env

@ -1,4 +1,4 @@
COMPOSE_PROJECT_NAME=weather_site
COMPOSE_PROJECT_NAME=jsonrpc-weather-frontend
PROJECT_ID=003
COMPOSE_DOCKER_CLI_BUILD=1

6
docker-compose.yaml

@ -1,7 +1,7 @@
version: "3"
networks:
weather_history_gate:
jsonrpc-weather-backend_gate:
external: true
services:
@ -26,7 +26,7 @@ services:
expose:
- "9000"
networks:
- weather_history_gate
- jsonrpc-weather-backend_gate
nginx:
image: nginx:1.19
restart: unless-stopped
@ -38,4 +38,4 @@ services:
ports:
- "8$PROJECT_ID:80"
networks:
- weather_history_gate
- jsonrpc-weather-backend_gate

2
src/Service/Endpoint/WeatherHistory.php

@ -18,7 +18,7 @@ class WeatherHistory implements WeatherHistoryInterface
{
$this->client = new Client();
$this->weatherHistoryServer = $parameterBag->get('weather_history_server');
$this->weatherHistoryServer = $parameterBag->get('weather_backend_server');
}
public function getByDate(DateTime $date): array

2
tests/acceptance.suite.yml

@ -6,7 +6,7 @@ modules:
config:
PhpBrowser:
url: http://weather_site_nginx_1/
url: http://jsonrpc-weather-frontend_nginx_1/
proxy: ''
curl:
CURLOPT_TIMEOUT: 10