fix scripts + mailer

This commit is contained in:
Primakov Alexandr Alexandrovich 2022-06-26 20:45:52 +03:00
parent 76544d6251
commit 7c5f677d97
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
docker stop $(docker ps -q)
docker volume remove multy_stub_volume
docker volume create multy_stub_volume
docker run --rm -v multy_stub_volume:/data/db -p 27017:27017 -d mongo
docker volume remove red_coder_volume
docker volume create red_coder_volume
docker run --rm -v red_coder_volume:/data/db -p 27017:27017 -d mongo:4.4.13

View File

@ -4,7 +4,7 @@
"description": "",
"main": "src/main.ts",
"scripts": {
"start": "nodemon",
"start": "cross-env MODE=\"dev\" nodemon",
"build": "tsc",
"up:prod": "node dist/src/main",
"deploy:d:stop": "docker-compose down",

View File

@ -1,10 +1,11 @@
import express from 'express'
import cookieSession from 'cookie-session'
import cors from 'cors'
import './config'
import { errorHandle } from './utils/error-handling'
import { router } from './routes'
import cors from 'cors'
import './mailer'
const app = express()