1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Herokuにデプロイ後にinternal server errorでハマった原因

Last updated at Posted at 2015-02-10

Herokuにデプロイ後に「internal server error」でハマった原因は
dist/server/config/express.jsの35行目

express.js
app.use(session({
    secret: config.secrets.session,
    resave: true,
    saveUninitialized: true,
    store: new mongoStore({ mongoose_connection: mongoose.connection })  }));

を以下のように修正すると解決した。

express.js
app.use(session({
    secret: config.secrets.session,
    resave: true,
    saveUninitialized: true,
    store: new mongoStore({ db: mongoose.connection.db })
  }));

参考サイト
https://github.com/DaftMonk/generator-angular-fullstack/issues/416

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?