2012-06-28 13:58:39 +00:00
|
|
|
@echo off
|
|
|
|
|
2017-09-14 11:33:27 +00:00
|
|
|
:: Change directory to etherpad-lite root
|
2012-08-01 13:51:14 +00:00
|
|
|
cd /D "%~dp0\.."
|
2012-06-28 13:58:39 +00:00
|
|
|
|
2012-08-01 21:37:39 +00:00
|
|
|
:: Is node installed?
|
2017-09-14 11:33:27 +00:00
|
|
|
cmd /C node -e "" || ( echo "Please install node.js ( https://nodejs.org )" && exit /B 1 )
|
2012-08-01 21:37:39 +00:00
|
|
|
|
2012-06-28 13:58:39 +00:00
|
|
|
echo _
|
2013-02-10 15:19:28 +00:00
|
|
|
echo Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient.
|
2017-08-07 14:36:44 +00:00
|
|
|
|
|
|
|
mkdir node_modules
|
|
|
|
cd /D node_modules
|
|
|
|
mklink /D "ep_etherpad-lite" "..\src"
|
|
|
|
|
|
|
|
cd /D "ep_etherpad-lite"
|
|
|
|
cmd /C npm install --loglevel warn || exit /B 1
|
|
|
|
|
2017-08-07 15:15:02 +00:00
|
|
|
cd /D "%~dp0\.."
|
2012-06-28 13:58:39 +00:00
|
|
|
|
2012-06-29 10:41:50 +00:00
|
|
|
echo _
|
2012-08-01 13:51:14 +00:00
|
|
|
echo Clearing cache...
|
2012-06-29 10:41:50 +00:00
|
|
|
del /S var\minified*
|
|
|
|
|
|
|
|
echo _
|
|
|
|
echo Setting up settings.json...
|
2012-08-01 13:51:14 +00:00
|
|
|
IF NOT EXIST settings.json (
|
|
|
|
echo Can't find settings.json.
|
|
|
|
echo Copying settings.json.template...
|
|
|
|
cmd /C copy settings.json.template settings.json || exit /B 1
|
|
|
|
)
|
2012-06-28 13:58:39 +00:00
|
|
|
|
|
|
|
echo _
|
2018-08-25 23:11:02 +00:00
|
|
|
echo Installed Etherpad! To run Etherpad type start.bat
|