From 9334a45e55e33518f7d076614a79eb770ec0c85e Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Mon, 3 May 2021 10:21:42 +0800 Subject: [PATCH] build: pm2 ecosystem config. --- ecosystem.config.js | 14 ++++++++++++++ src/App.test.tsx | 9 --------- 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 ecosystem.config.js delete mode 100644 src/App.test.tsx diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..10e4eb0 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,14 @@ +module.exports = { + apps: [ + { + name: "blog-bs", + script: "serve", + args: "-s build", + watch: false, + ignore_watch: ["node_modules"], + log_date_format: "MM-DD HH:mm:ss.SSS Z", + env: {}, + max_restarts: 5, + }, + ], +}; diff --git a/src/App.test.tsx b/src/App.test.tsx deleted file mode 100644 index 2a68616..0000000 --- a/src/App.test.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import React from 'react'; -import { render, screen } from '@testing-library/react'; -import App from './App'; - -test('renders learn react link', () => { - render(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -});