Fix dev instance following test instances
This commit is contained in:
parent
03902b0099
commit
efaf379789
|
@ -228,7 +228,7 @@ $ NODE_APP_INSTANCE=2 NODE_ENV=test npm start
|
||||||
$ NODE_APP_INSTANCE=3 NODE_ENV=test npm start
|
$ NODE_APP_INSTANCE=3 NODE_ENV=test npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you will get access to the three nodes at `http://localhost:900{1,2,3}`
|
Then you will get access to the three nodes at `http://127.0.0.1:900{1,2,3}`
|
||||||
with the `root` as username and `test{1,2,3}` for the password.
|
with the `root` as username and `test{1,2,3}` for the password.
|
||||||
|
|
||||||
Instance configurations are in `config/test-{1,2,3}.yaml`.
|
Instance configurations are in `config/test-{1,2,3}.yaml`.
|
||||||
|
|
|
@ -13,7 +13,7 @@ function isUrlValid (url: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// We validate 'localhost', so we don't have the top level domain
|
// We validate 'localhost', so we don't have the top level domain
|
||||||
if (CONFIG.WEBSERVER.HOSTNAME === 'localhost') {
|
if (CONFIG.WEBSERVER.HOSTNAME === 'localhost' || CONFIG.WEBSERVER.HOSTNAME === '127.0.0.1') {
|
||||||
isURLOptions.require_tld = false
|
isURLOptions.require_tld = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ function isHostValid (host: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// We validate 'localhost', so we don't have the top level domain
|
// We validate 'localhost', so we don't have the top level domain
|
||||||
if (CONFIG.WEBSERVER.HOSTNAME === 'localhost') {
|
if (CONFIG.WEBSERVER.HOSTNAME === 'localhost' || CONFIG.WEBSERVER.HOSTNAME === '127.0.0.1') {
|
||||||
isURLOptions.require_tld = false
|
isURLOptions.require_tld = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import { logger } from '@server/helpers/logger'
|
|
||||||
import { Memoize } from '@server/helpers/memoize'
|
import { Memoize } from '@server/helpers/memoize'
|
||||||
import { ServerModel } from '@server/models/server/server'
|
import { ServerModel } from '@server/models/server/server'
|
||||||
import { ActorModel } from '../../actor'
|
import { ActorModel } from '../../actor'
|
||||||
|
@ -9,8 +8,6 @@ export class ActorFollowTableAttributes {
|
||||||
|
|
||||||
@Memoize()
|
@Memoize()
|
||||||
getFollowAttributes () {
|
getFollowAttributes () {
|
||||||
logger.error('coucou')
|
|
||||||
|
|
||||||
return ActorFollowModel.getSQLAttributes('ActorFollowModel').join(', ')
|
return ActorFollowModel.getSQLAttributes('ActorFollowModel').join(', ')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue