Skip to content

Commit

Permalink
fix-cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
benawad committed Aug 17, 2020
1 parent 431e869 commit b4c85ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions server/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

echo What should the version be?
read VERSION

docker build -t benawad/lireddit:$VERSION .
docker push benawad/lireddit:$VERSION
ssh [email protected] "docker pull benawad/lireddit:$VERSION && docker tag benawad/lireddit:$VERSION dokku/api:$VERSION && dokku deploy api $VERSION"
2 changes: 1 addition & 1 deletion server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const main = async () => {

const RedisStore = connectRedis(session);
const redis = new Redis(process.env.REDIS_URL);
app.set("proxy", 1);
app.set("trust proxy", 1);
app.use(
cors({
origin: process.env.CORS_ORIGIN,
Expand Down

0 comments on commit b4c85ce

Please sign in to comment.