-
Notifications
You must be signed in to change notification settings - Fork 19
Automated Setup Script Dev Ubuntu
Angel Rey edited this page Dec 23, 2020
·
1 revision
# Clone the code in your /opt directory
cd ~
git clone https://github.com/Monadical-SAS/oddslingers.poker
sudo mv oddslingers.poker /opt
# 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 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
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.