Skip to content

Commit

Permalink
Merge pull request #82 from SEL-Columbia/conn_devs
Browse files Browse the repository at this point in the history
constraint error
  • Loading branch information
jmbott authored Sep 5, 2018
2 parents 9b0f615 + 9d5e2e9 commit 7208a86
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions minigrid/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,7 @@ class Customer(Base):

__table_args__ = (
sa.UniqueConstraint('customer_minigrid_id', 'customer_user_id'),
sa.UniqueConstraint('customer_minigrid_id', 'customer_name'),
sa.UniqueConstraint('customer_minigrid_id', 'customer_current_limit'),
sa.UniqueConstraint('customer_minigrid_id', 'customer_energy_limit'))
sa.UniqueConstraint('customer_minigrid_id', 'customer_name'))


class MaintenanceCard(Base):
Expand Down
2 changes: 1 addition & 1 deletion prod/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
minigrid:
image: selcolumbia/minigrid-server:0.2.7
image: selcolumbia/minigrid-server:0.2.8
command: ./prod/run.sh --db_host=db --redis_url=redis://redis:6379/0 --minigrid-website-url=https://www.example.com
depends_on:
- redis
Expand Down
6 changes: 3 additions & 3 deletions prod/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# Minigrid Server installer for version 0.2.7
# Minigrid Server installer for version 0.2.8
set -e

# Do you have docker installed?
Expand Down Expand Up @@ -108,8 +108,8 @@ $SUDO openssl dhparam -out /etc/letsencrypt/live/$LETSENCRYPT_DIR/dhparam.pem 20
printf "========================================\n"
printf " Generating configuration \n"
printf "========================================\n"
$CURL -L https://raw.githubusercontent.com/SEL-Columbia/minigrid-server/0.2.7/prod/docker-compose.yml > docker-compose.yml
$CURL -L https://raw.githubusercontent.com/SEL-Columbia/minigrid-server/0.2.7/prod/nginx.conf > nginx.conf
$CURL -L https://raw.githubusercontent.com/SEL-Columbia/minigrid-server/0.2.8/prod/docker-compose.yml > docker-compose.yml
$CURL -L https://raw.githubusercontent.com/SEL-Columbia/minigrid-server/0.2.8/prod/nginx.conf > nginx.conf

sed -i s/www.example.com/$LETSENCRYPT_DIR/g docker-compose.yml
sed -i s/www.example.com/$LETSENCRYPT_DIR/g nginx.conf
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
asyncio-portier==0.1.0.post1
cryptography==2.3.1
psycopg2-binary>=2.7.5
PyJWT==1.4.2
PyJWT==1.6.4
redis==2.10.6
sockjs-tornado==1.0.5
sqlalchemy==1.2.11
Expand Down

0 comments on commit 7208a86

Please sign in to comment.