19 lines
No EOL
633 B
Shell
19 lines
No EOL
633 B
Shell
#!/bin/bash
|
|
# don't forget to modify it, according to your db credentials
|
|
if [ -z "$DATABASE_URL"]; then
|
|
echo 'export DATABASE_URL=ecto://postgres:postgres@localhost/lp_dev' >> ~/.bashrc
|
|
fi
|
|
if [ -z "$SECRET_KEY_BASE"]; then
|
|
key=`mix phx.gen.secret`
|
|
echo 'export SECRET_KEY_BASE='$key >> ~/.bashrc
|
|
fi
|
|
if [ -z "$PORT"]; then
|
|
echo 'export PORT=443' >> ~/.bashrc
|
|
fi
|
|
# and cert paths
|
|
if [ -z "$GCLP_SSL_KEY_PATH"]; then
|
|
echo 'export GCLP_SSL_KEY_PATH=/GCLP/lp/priv/cert/selfsigned_key.pem' >> ~/.bashrc
|
|
fi
|
|
if [ -z "$GCLP_APP_SSL_CERT_PATH"]; then
|
|
echo 'export GCLP_APP_SSL_CERT_PATH=/GCLP/lp/priv/cert/selfsigned.pem' >> ~/.bashrc
|
|
fi |