Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Opaksfire authored Nov 20, 2024
1 parent 89c38b8 commit fced597
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
import chalk from 'chalk'
import express from 'express'
import { fileURLToPath } from 'url'
import { join, dirname } from 'path'
import path from 'path'
import { setupMaster, fork } from 'cluster'
import { watchFile, unwatchFile } from 'fs'
import { createInterface } from 'readline'

const app = express()
const port = process.env.PORT || 5000

const rl = createInterface(process.stdin, process.stdout)
const __dirname = dirname(fileURLToPath(import.meta.url))
const args = [join(__dirname, 'firemd.js'), ...process.argv.slice(2)]

app.use(express.static(path.join(__dirname, 'Assets')));

app.get('/', (req, res) => {
res.redirect('/fire.html');
});

app.listen(port, () => {
console.log(chalk.green(`Port ${port} is open`))
})

var isRunning = false
function start(file) {
if (isRunning) return
Expand Down

0 comments on commit fced597

Please sign in to comment.