Browse Source

Small Fixes for Heroku and Render.com (#718)

* remove unused env vars and use default domain

* clarify render.com wait time

* small changes
pull/731/head
Henrique Goncalves 5 years ago
committed by GitHub
parent
commit
5ccc62cd3f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 36
      app.json
  2. 4
      packer/heroku/squidex/squidex.sh
  3. 10
      packer/render/squidex/squidex.sh
  4. 19
      render.yaml

36
app.json

@ -17,42 +17,6 @@
"MONGO_PASSWORD": {
"description": "Mongo Password (see MONGO_USERNAME)",
"value": "Squidex123"
},
"EVENTSTORE__TYPE": {
"description": "EventStore Type",
"value": "MongoDB"
},
"IDENTITY__ADMINEMAIL": {
"description": "Admin Email",
"value": "squidex@example.com"
},
"IDENTITY__ADMINPASSWORD": {
"description": "Admin Password",
"generator": "secret"
},
"IDENTITY__GOOGLECLIENT": {
"description": "Google Client ID",
"required": false
},
"IDENTITY__GOOGLESECRET": {
"description": "Google Secret",
"required": false
},
"IDENTITY__GITHUBCLIENT": {
"description": "GitHub Client ID",
"required": false
},
"IDENTITY__GITHUBSECRET": {
"description": "GitHub Secret",
"required": false
},
"IDENTITY__MICROSOFTCLIENT": {
"description": "Microsoft Client ID",
"required": false
},
"IDENTITY__MICROSOFTSECRET": {
"description": "Microsoft Secret",
"required": false
}
},
"formation": {

4
packer/heroku/squidex/squidex.sh

@ -10,4 +10,8 @@ export STORE__MONGODB__CONTENTDATABASE="Squidex"
export ASPNETCORE_URLS="http://+:$PORT"
export IDENTITY__GOOGLECLIENT=""
export IDENTITY__GITHUBCLIENT=""
export IDENTITY__MICROSOFTCLIENT=""
dotnet Squidex.dll

10
packer/render/squidex/squidex.sh

@ -1,10 +1,18 @@
#!/bin/sh
echo "Waiting 60 seconds ..."
echo "Waiting 60 seconds for MongoDB ..."
sleep 60
if [ "x$DOMAIN" = "x" ]; then
export DOMAIN=$RENDER_EXTERNAL_HOSTNAME
fi
export URLS__BASEURL="https://${DOMAIN}"
export EVENTSTORE__MONGODB__CONFIGURATION="mongodb://${MONGO}"
export STORE__MONGODB__CONFIGURATION="mongodb://${MONGO}"
export IDENTITY__GOOGLECLIENT=""
export IDENTITY__GITHUBCLIENT=""
export IDENTITY__MICROSOFTCLIENT=""
dotnet Squidex.dll

19
render.yaml

@ -1,3 +1,4 @@
autoDeploy: false
services:
- type: web
name: squidex_squidex
@ -18,24 +19,6 @@ services:
name: squidex_mongo
type: pserv
property: hostport
- key: EVENTSTORE__TYPE
value: MongoDB
- key: IDENTITY__ADMINEMAIL
sync: false
- key: IDENTITY__ADMINPASSWORD
generateValue: true
- key: IDENTITY__GOOGLECLIENT
sync: false
- key: IDENTITY__GOOGLESECRET
sync: false
- key: IDENTITY__GITHUBCLIENT
sync: false
- key: IDENTITY__GITHUBSECRET
sync: false
- key: IDENTITY__MICROSOFTCLIENT
sync: false
- key: IDENTITY__MICROSOFTSECRET
sync: false
- key: ASPNETCORE_URLS
value: http://+:5000
- type: pserv

Loading…
Cancel
Save