namillum
Version:
Bubble Protocol SDK
28 lines (24 loc) • 1.03 kB
text/typescript
/**
* This file is part of savant-ide.
* Copyright (c) 2018 - present Zilliqa Research Pte. Ltd.
*
* savant-ide is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* savant-ide is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with
* savant-ide. If not, see <http://www.gnu.org/licenses/>.
*/
import app from "./app";
// Launch scilla server
const port = process.env.NODE_PORT ? parseInt(process.env.NODE_PORT, 10) : 8080;
const host = process.env.NODE_HOST || "0.0.0.0";
app.listen(port, host, () => {
console.log(`Scilla is running at ${host}:${port}`);
});
export default app;