forked from paulmarrington/RAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathram.bat
More file actions
59 lines (47 loc) · 1.17 KB
/
ram.bat
File metadata and controls
59 lines (47 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem RAM support script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIR=%~dp0
if "%DIR%" == "" set DIR=.
if "start:frontend"=="%1" goto startFrontend
if "start:backend"=="%1" goto startBackend
if "db:seed"=="%1" goto dbSeed
echo Usage: ram ( command ... )
echo commands:
echo start:frontend Starts local frontend server
echo start:backend Starts local backend server
echo
echo db:seed Seeds local database
goto end
# START
:startFrontend
echo ""
echo "Starting frontend"
cd frontend
gulp serve
echo ""
goto end
:startBackend
echo ""
echo "Starting backend"
cd backend
RAM_CONF=$DIR/backend/conf/conf-localhost.js
gulp serve
echo ""
goto end
# DB
:dbSeed
echo ""
echo "Seeding database"
echo ""
cd backend
RAM_CONF=$DIR/backend/conf/conf-localhost.js
gulp seed
echo ""
goto end
:end