silex-website-builder-goodevent
Version:
Free and easy website builder for everyone.
33 lines (27 loc) • 1.01 kB
text/typescript
#!/usr/bin/env node
//////////////////////////////////////////////////
// Silex, live web creation
// http://projects.silexlabs.org/?/silex/
//
// Copyright (c) 2012 Silex Labs
// http://www.silexlabs.org/
//
// Silex is available under the GPL license
// http://www.silexlabs.org/silex/silex-licensing/
//////////////////////////////////////////////////
'use strict';
import 'source-map-support/register';
import { Config } from './ServerConfig';
import SilexServer from './SilexServer';
const config = new Config();
// here you can change config,
// e.g. use config.publishRouterOptions.enableHostingGhPages
const silex = new SilexServer(config);
// here you can change routers,
// e.g. add unifile services `silex.unifile.use(unifileConnector)`
// and use `silex.app.get(...)` to add callbacks
// silex.publishRouter.addHostingProvider(...)
// @see https://github.com/silexlabs/Silex/wiki/Silex-Developer-Guide#add-unifile-services-eg-for-hosting-companies
silex.start(() => {
// server started
});