Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22394820
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
README.md
View Options
[](http://sealious.github.io/)
#
Sealious
Sealious
is
a
declarative
node
.
js
framework
##
Configuring
your
app
Every
Sealious
application
has
an
`
App
.
ConfigManager
`
interface
through
which
you
can
configure
settings
available
throughout
all
the
various
components
of
your
application
.
It
comes
with
some
sane
defaults
.
###
Changing
the
app
settings
To
run
the
app
with
specific
settings
,
use
an
argument
to
`
app
.
run
`
method
:
```
const
myApp
=
new
Sealious
.
App
();
myApp
.
run
({
http
:
{
port
:
8070
}});
```
Alternatively
,
you
can
use
the
`
ConfigManager
.
set
`
method
-
which
is
especially
useful
when
you
want
to
use
the
dot
notation
to
change
just
a
single
value
:
```
const
myApp
=
new
Sealious
.
App
();
myApp
.
ConfigManager
.
set
(
"http.port"
,
8070
);
```
###
Default
values
If
you
'
re
creating
your
own
Sealious
module
and
want
to
make
it
globally
configurable
,
use
the
`
.
setDefault
`
to
set
the
default
value
for
your
setting
.
NOTE
:
Sometimes
it
'
s
better
to
just
parametrize
your
module
so
it
can
be
used
multiple
times
with
different
configuration
.
ConfigManager
is
only
useful
for
app
-
wide
configurations
.
```
app
.
setDefault
(
"my-module"
,
{
port
:
8080
});
```
You
can
also
use
dot
notation
when
setting
single
field
values
:
```
app
.
setDefault
(
"my-module.port"
,
8080
);
```
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 27, 16:20 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1202806
Default Alt Text
README.md (1 KB)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline