This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flask_local.bash
executable file
·65 lines (51 loc) · 1.8 KB
/
flask_local.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
# Set env variables for the altmetrics service.
# For convenience, I would recommend creating an alias that run this script.
# DB Credentials
export DB_USER='altmetrics_user'
export DB_PASSWORD='altmetrics_pw'
export DB_NAME='altmetrics_db'
export DB_HOST='localhost'
export PORT='5432'
# Flask settings for dev - no need to change
export FLASK_APP=core
export FLASK_ENV=development
export CONFIG=DevConfig
# RabbitMQ Credentials
export RMQ_HOST=localhost
export RMQ_VHOST=altmetrics
export RMQ_USER=user
export RMQ_PASSWORD=password
# RabbitMQ credentials to be used by nameko
export NAMEKO_USER=user
export NAMEKO_PASSWORD=password
export NAMEKO_VHOST=comms
# Security
export SECURITY_PASSWORD_SALT='very-secure-password-salt'
export JWT_KEY='very-secure-web-token-key'
# Maigun credentials
export MAIL_SERVER='smtp.mailgun.org'
export MAIL_PORT=587
export MAIL_USERNAME='username@mailgun.account'
export MAIL_PASSWORD='mailgun-password'
export MAIL_DEFAULT_SENDER='noreply@hirmeos-altmetrics.com'
# Twitter Dev crentials
export TWITTER_APP_KEY='twitter-key'
export TWITTER_APP_KEY_SECRET='twitter-key-secret'
export TWITTER_ACCESS_TOKEN='twitter-access-token'
export TWITTER_ACCESS_TOKEN_SECRET='twitter-access-token-secret'
export TWITTER_LABEL=dev
# RabbitMQ configuration
export RMQ_HOST=localhost
export RMQ_VHOST=altmetrics
export RMQ_PASSWORD=password
export RMQ_USER=user
# Names for measures
export MEASURES_HYPOTHESIS='https://metrics.operas-eu.org/hypothesis/annotations/v1'
export MEASURES_TWITTER='https://metrics.operas-eu.org/twitter/tweets/v1'
export MEASURES_WIKIPEDIA='https://metrics.operas-eu.org/wikipedia/references/v1'
export MEASURES_WORDPRESSDOTCOM='https://metrics.operas-eu.org/wordpress/references/v1'
export REDIS_HOST=localhost
export TECH_EMAIL=demo.user@mail.com
ARGS=("$*")
$ARGS