1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-07 11:55:17 +02:00

💥 support mysql and add heroku button

This commit is contained in:
f97 2021-12-08 03:20:49 +00:00 committed by f97
parent b08181e712
commit 57935209c2
6 changed files with 3951 additions and 30422 deletions

View file

@ -17,6 +17,10 @@ Flame is self-hosted startpage for your server. Its design is inspired (heavily)
## Installation
### With Heroku
[![Heroku Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/pawelmalak/flame/tree/master)
### With Docker (recommended)
[Docker Hub link](https://hub.docker.com/r/pawelmalak/flame)

14
app.json Normal file
View file

@ -0,0 +1,14 @@
{
"name": "Flame ",
"description": "Flame is self-hosted startpage for your server",
"repository": "https://github.com/pawelmalak/flame",
"addons": [
"jawsdb-maria"
],
"env": {
"PASSWORD": {
"description": "Password to login flame",
"value": ""
}
}
}

28565
client/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,11 +7,18 @@ const backupDB = require('./utils/backupDb');
const Logger = require('../utils/Logger');
const logger = new Logger();
const sequelize = new Sequelize({
dialect: 'sqlite',
storage: './data/db.sqlite',
logging: false,
});
let sequelize
if (process.env.JAWSDB_MARIA_URL) {
sequelize = new Sequelize(process.env.JAWSDB_MARIA_URL, {
logging:false
})
} else {
sequelize = new Sequelize({
dialect: 'sqlite',
storage: './data/db.sqlite',
logging: false,
});
}
const umzug = new Umzug({
migrations: {

5771
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -12,6 +12,7 @@
"dev-server": "nodemon server.js -e js",
"dev-client": "npm start --prefix client",
"dev": "concurrently \"npm run dev-server\" \"npm run dev-client\"",
"build": "mkdir -p ./public ./data && cd ./client && npm install --production && npm run build && cd .. && mv ./client/build/* ./public && rm -rf ./client",
"skaffold": "concurrently \"npm run init-client\" \"npm run dev-server\""
},
"author": "",
@ -26,6 +27,7 @@
"express": "^4.17.1",
"jsonwebtoken": "^8.5.1",
"multer": "^1.4.3",
"mysql2": "^2.3.3",
"node-schedule": "^2.0.0",
"sequelize": "^6.9.0",
"sqlite3": "^5.0.2",