Skip to content

Latest commit

 

History

History
90 lines (61 loc) · 1.35 KB

install.md

File metadata and controls

90 lines (61 loc) · 1.35 KB

Install Twity

Requirements

  • php 7.2 or higher
  • MongoDb 4
  • RabbitMQ 3

Install

git clone https://github.com/julienj/twity.git
cd twity
composer install
npm install
npm run build

Configure

Edit .env file

App

APP_ENV=prod
APP_SECRET=your-secret

MongoDB

MONGODB_URL=mongodb://localhost:27017
MONGODB_DB=symfony

RabbitMQ

MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages

Smtp

EMAIL_SENDER=[email protected]
MAILER_URL=smtp://localhost:25?encryption=&auth_mode=

Gitlab Oauth (optional)

GITLAB_DOMAINE=https://gitlab.exemple.com
GITLAB_CLIENT_ID=my-client-id
GITLAB_CLIENT_ID_SECRET=my-secret

If you choose to setup the Gitlab Oauth, when creating the twity application on your Gitlab account, you will have to fill in the redirect uri. These uri is http(s)://YOURTWITYDOMAIN/login/gitlab

Create indexes

 php bin/console doctrine:mongodb:schema:update

Run background jod

php bin/console messenger:consume-messages

Or use supervisord

Configure crontab

Run this command every day for update provider

php /path/to/app/bin/console app:request-reload-providers

Create Admin user

php bin/console app:create-user

Use `ROLE_ADMIN for create tou first admin user