Admin role added, dev side has hot reload again, characters AND groups tied to accounts now.
This commit is contained in:
45
ecosystem.config.js
Normal file
45
ecosystem.config.js
Normal file
@@ -0,0 +1,45 @@
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'api-prod',
|
||||
cwd: './server',
|
||||
script: 'npx',
|
||||
args: 'tsx src/index.ts',
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 3002,
|
||||
DATABASE_URL: 'file:./data.db',
|
||||
SESSION_SECRET: 'K7xP2mN9qR4sT6vW8yB1cD3fG5hJ0kL2nO4pQ6rS8tU0wX2z',
|
||||
BACKEND_SECRET: 'A1bC3dE5fG7hI9jK1lM3nO5pQ7rS9tU1vW3xY5zA7bC9dE1f',
|
||||
CORS_ORIGINS: 'https://leagues.tools,https://www.leagues.tools,http://localhost:3002',
|
||||
FRONTEND_BUILD_PATH: '../os-league-tools-master/build',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'api-dev',
|
||||
cwd: './server',
|
||||
script: 'npx',
|
||||
args: 'tsx watch src/index.ts',
|
||||
env: {
|
||||
NODE_ENV: 'development',
|
||||
PORT: 3003,
|
||||
DATABASE_URL: 'file:./data-dev.db',
|
||||
SESSION_SECRET: 'K7xP2mN9qR4sT6vW8yB1cD3fG5hJ0kL2nO4pQ6rS8tU0wX2z',
|
||||
BACKEND_SECRET: 'A1bC3dE5fG7hI9jK1lM3nO5pQ7rS9tU1vW3xY5zA7bC9dE1f',
|
||||
CORS_ORIGINS: 'http://localhost:3000,http://localhost:3001,https://dev.leagues.tools',
|
||||
FRONTEND_BUILD_PATH: '../os-league-tools-master/build',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'frontend-dev',
|
||||
cwd: './os-league-tools-master',
|
||||
script: 'npm',
|
||||
args: 'run dev',
|
||||
env: {
|
||||
BROWSER: 'none',
|
||||
PORT: 3000,
|
||||
WDS_SOCKET_PORT: 443, // Use nginx's HTTPS port for WebSocket
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user