Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
Release version 1.0.8
  • Loading branch information
alirzaev committed Aug 31, 2019
2 parents 593094c + 58a5108 commit 266b849
Show file tree
Hide file tree
Showing 25 changed files with 1,592 additions and 1,913 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ EXPOSE 80
WORKDIR /usr/src/project

COPY package.json ./
RUN npm install
RUN yarn install

COPY . .

ENV NODE_ENV production

CMD ["sh", "./start.sh"]
CMD ["sh", "./docker-cmd.sh"]
2 changes: 2 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web: yarn start

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,17 @@ Telegram-бот для просмотра расписания занятий с

`WEBHOOK_URL` - webhook для Telegram-бота. Если не указан, то бот будет работать в режиме `polling`.

**Внимание!** Из [соображений безопасности](https://core.telegram.org/bots/api#setwebhook) в webhook URL
добавляется токен бота. Полный webhook URL будет выглядеть так: `<WEBHOOK_URL>/<TOKEN>`.

`API_URL` - URL [backend-сервера](https://github.com/alirzaev/vyatsu-schedule-backend).

`WEBAPP_URL` - URL [веб-приложения](https://github.com/alirzaev/vyatsu-schedule).

### Запуск

```
npm start
yarn start
```

### Docker
Expand Down
33 changes: 0 additions & 33 deletions app/configs/bot.js

This file was deleted.

3 changes: 3 additions & 0 deletions docker-cmd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
export PORT=80 # override variable according to the EXPOSE instruction
yarn start
Loading

0 comments on commit 266b849

Please sign in to comment.