-
Notifications
You must be signed in to change notification settings - Fork 0
Home
install postgresql setup postgresql according to WIP-DB-setup.md make sure the user created in step 2 is accessible via atleast local connection according to postgresql config files (config file location is specific to you OS and setup) (usually this involves changing connection mode from peer to md5) now follow Home.md install and run bower install in the directory specified by Moamen (Moamen has details for this step) make sure redis and postrgres are started and accepting requests use instructions in Run-command.md to start the server
sudo apt-get update && sudo apt-get install redis-server
redis-cli
flushall
tmux new -s redis-server # create session
redis-server
# detach from session with control b then d
redis config in server(Deafult):
- Port : 6379
- Config file : /etc/redis/6379.conf
- Log file : /var/log/redis_6379.log (changed to : /home/ubuntu/redis/log/redis_6379.log for EC2)
- Data dir : /var/lib/redis/6379
- Executable : /usr/local/bin/redis-server
- Cli Executable : /usr/local/bin/redis-cli
Config for java web server in configuration.yml found in root directory of the repo
In production environment the following changes are made to the config mostly relevant to logging level and logging location.
logging:
level: INFO
appenders:
- type: file
currentLogFilename: var/log/event-board.log
threshold: ALL
archive: true
archivedLogFilenamePattern: var/log/event-board-%d.log
For production:
twitter:
consumer-key: 6PPRgLzPOf6Mvcj3NkPIlq07Y
consumer-secret: Xl3TKJwNQtZmbYGhLcXzUseO9CrdoMav54qODCr2CnFiSIIZpb
user-key: 1974931724-iUek6BFqWg3SSyuTMfTDhvL5DrzDGDkClgd9yB0
user-secret: 3SrUJH57ROyLlIoTle81CP1LDtbWDlGf4ew4tocDekuil
For development (NOTE: only one person can run using this key in development, if multiple users need to run the dev environment simultaneously generate new keys from twitter and replace them here BUT DO NOT COMMIT CHANGES IN THIS KEY!):
twitter:
consumer-key: x8mRgwkDLqtJAIbtF2exVGUAJ
consumer-secret: GOe5YzFEL5b189ZqfBRUF78e5KKUCWlw7eNlFZCBPvLvqgWJX9
user-key: 1974931724-99y199ECdu3BlIDy8oA1cYpxNRDK77PF5a6XUvx
user-secret: rXQVL0Jinj7IiD6dmkobEuoY9ScL8U1JaVAA1XR6wS2VA
The domain names needs to be updated in the config at this line
baseDomain: localhost:8080
and
applicationConnectors:
- type: http
port: 8080
to port: 80