Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Commit

Permalink
[master] Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelpalacce committed Feb 18, 2022
1 parent 401639f commit dd98f29
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 26 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ FROM node:14-alpine as builder

WORKDIR /app
COPY . .
RUN ls -lah
RUN npm i && npm run build && npm prune --production && rm -rf src

FROM node:14-alpine as base
Expand Down
4 changes: 4 additions & 0 deletions UPDATELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
23.1.0
* Small fixes
* Fixed the way the env file is created...

23.0.0
* Moved to github actions

Expand Down
22 changes: 0 additions & 22 deletions docker-compose.yml

This file was deleted.

5 changes: 4 additions & 1 deletion ensure_env_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ const fs = require( 'fs' );
const path = require( 'path' );
const configPath = require( './api/main/utils/config_path' );

const PROJECT_ROOT = path.parse( require.main.filename ).dir;
const envFile = path.join( configPath, 'env.js' );

if ( ! fs.existsSync( configPath ) )
fs.mkdirSync( configPath, { recursive: true } );

if ( ! fs.existsSync( path.join( configPath, 'env.js' ) ) )
fs.copyFileSync( 'env.js.template', envFile );
fs.copyFileSync( path.join( PROJECT_ROOT, 'env.js.template' ), envFile );

module.exports = envFile;


3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "server-emulator",
"version": "23.0.0",
"version": "23.1.0",
"private": false,
"description": "Server emulator used to easily emulate the FS in a browser and allow streaming,downloading,deletion, etc.",
"author": {
Expand All @@ -12,7 +12,6 @@
"prepublishOnly": "npm run build",
"serve-dev": "pm2-runtime dev.ecosystem.config.js"
},
"main": "index.js",
"dependencies": {
"archiver": "^3.1.1",
"axios": "^0.21.1",
Expand Down

0 comments on commit dd98f29

Please sign in to comment.