System Information
- Strapi Version:
- Operating System:
- Database:
- Node Version:
- NPM Version:
- Yarn Version:
Followed the documentation for deploying on Heroku and added a middleware appname.herokuapp.com
still takes forever to start.
i followed this issue 8375 and the docs.
my middleware.js
module.exports = {
settings: {
gzip: {
enabled: true,
options: {
br: false
}
}
},
};
/config/env/production/database.js
const parse = require(‘pg-connection-string’).parse;
const config = parse(process.env.DATABASE_URL);
module.exports = ({ env }) => ({
defaultConnection: ‘default’,
connections: {
default: {
connector: ‘bookshelf’,
settings: {
client: ‘postgres’,
host: config.host,
port: config.port,
database: config.database,
username: config.user,
password: config.password,
ssl: {
rejectUnauthorized: false,
},
},
options: {
ssl: true,
},
},
},
});
/config/env/production/server.js
module.exports = ({ env }) => ({
url: env(‘HEROKU_URL’),
});
The /admin has
not openend even after 10mins on heroku.