Skip to content

Automated Setup Script Dev Ubuntu

Angel Rey edited this page Dec 23, 2020 · 1 revision

Clone the code

# Clone the code in your /opt directory
cd ~
git clone https://github.com/Monadical-SAS/oddslingers.poker
sudo mv oddslingers.poker /opt

Set environment variables

# Become root
sudo su -
# For Bash: add this line to ~/.bashrc or ~/.bash_profile
PATH=/opt/oddslingers.poker/bin:./node_modules/.bin:$PATH
export POSTGRES_USER=oddslingers
export POSTGRES_DB=oddslingers

Run the script

Run the script setup-dev-ubuntu as root.

cd /opt/oddslingers.poker/bin
# Set `POSTGRES_HOST` to `localhost` in `./env/dev.env` file.
./setup-dev-ubuntu # or ./setup-dev-mac

Start oddslingers

You can start oddslingers now by management command.

# For Bash: add this line to ~/.bashrc or ~/.bash_profile
PATH=/opt/oddslingers.poker/bin:./node_modules/.bin:$PATH

oddslingers start

Then visit the host to see your running development server! Go to oddslingers.l and enjoy.