diff --git a/.tool-versions b/.tool-versions index f50b8e1..7c3b688 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,2 +1 @@ nodejs: 20.11.0 - diff --git a/ansible/development/group_vars/all/vars.yml b/ansible/development/group_vars/all/vars.yml index 6ecb40a..5948a70 100644 --- a/ansible/development/group_vars/all/vars.yml +++ b/ansible/development/group_vars/all/vars.yml @@ -1,7 +1,7 @@ -node_env: 'delelopment' +node_env: 'development' bot_port: 5000 bot_codebattle_socket_token: 'chat_bot' -bot_codebattle_socket_url: 'ws://localhost:4000/chat_bot' +bot_codebattle_socket_url: 'ws://localhost:4002/chat_bot' codebattle_db_name: 'codebattle_dev' codebattle_db_hostname: 'db' codebattle_db_username: 'postgres' diff --git a/ansible/templates/environment.j2 b/ansible/templates/environment.j2 index 058c895..8feaf25 100644 --- a/ansible/templates/environment.j2 +++ b/ansible/templates/environment.j2 @@ -1,12 +1,12 @@ -NODE_ENV:{{ node_env }} -BOT_PORT:{{ bot_port }} -BOT_CODEBATTLE_SOCKET_TOKEN:{{ bot_codebattle_socket_token }} -BOT_CODEBATTLE_SOCKET_URL:{{ bot_codebattle_socket_url }} -CODEBATTLE_DB_NAME:{{ codebattle_db_name }} -CODEBATTLE_DB_HOSTNAME:{{ codebattle_db_hostname }} -CODEBATTLE_DB_USERNAME:{{ codebattle_db_username }} -CODEBATTLE_DB_PASSWORD:{{ codebattle_db_password }} -CODEBATTLE_DB_PORT:{{ codebattle_db_port }} -TELEGRAM_BOT_TOKEN:{{ telegram_bot_token }} -DISCORD_BOT_TOKEN:{{ discord_bot_token }} -DISCORD_BOT_CLIENT_ID:{{ discord_bot_client_id }} +NODE_ENV={{ node_env }} +BOT_PORT={{ bot_port }} +BOT_CODEBATTLE_SOCKET_TOKEN={{ bot_codebattle_socket_token }} +BOT_CODEBATTLE_SOCKET_URL={{ bot_codebattle_socket_url }} +CODEBATTLE_DB_NAME={{ codebattle_db_name }} +CODEBATTLE_DB_HOSTNAME={{ codebattle_db_hostname }} +CODEBATTLE_DB_USERNAME={{ codebattle_db_username }} +CODEBATTLE_DB_PASSWORD={{ codebattle_db_password }} +CODEBATTLE_DB_PORT={{ codebattle_db_port }} +TELEGRAM_BOT_TOKEN={{ telegram_bot_token }} +DISCORD_BOT_TOKEN={{ discord_bot_token }} +DISCORD_BOT_CLIENT_ID={{ discord_bot_client_id }}