Skip to content
This repository was 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 Mar 10, 2022
1 parent 5624ddc commit b1ebfdb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ WORKDIR /app

COPY --from=builder /app /app

RUN npm i pm2
RUN npm i -g pm2
CMD ["pm2-runtime", "ecosystem.config.js"]
3 changes: 3 additions & 0 deletions UPDATELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
23.1.2
* Fix

23.1.1
* Fix for pm2

Expand Down
4 changes: 1 addition & 3 deletions ensure_env_file.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
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( path.join( PROJECT_ROOT, 'env.js.template' ), envFile );
fs.copyFileSync( 'env.js.template', envFile );

module.exports = envFile;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "server-emulator",
"version": "23.1.1",
"version": "23.1.2",
"private": false,
"description": "Server emulator used to easily emulate the FS in a browser and allow streaming,downloading,deletion, etc.",
"author": {
Expand Down

0 comments on commit b1ebfdb

Please sign in to comment.