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 da02e17 commit 6d6eef6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
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 6d6eef6

Please sign in to comment.