فهرست منبع

Updated release and startup scripts.

Thanks to xet7 !
Lauri Ojansivu 1 سال پیش
والد
کامیت
b068d07ce5
2فایلهای تغییر یافته به همراه15 افزوده شده و 22 حذف شده
  1. 13 12
      releases/build-bundle-win64.bat
  2. 2 10
      start-wekan.bat

+ 13 - 12
releases/build-bundle-win64.bat

@@ -6,17 +6,18 @@ ECHO 1) Deleting old bundle
 CALL DEL /F /S /Q bundle
 
 ECHO 2) Downloading new WeKan.zip
-CALL DEL wekan-%1-amd64.zip
-CALL wget https://releases.wekan.team/wekan-%1-amd64.zip
+REM CALL DEL wekan-%1-amd64.zip
+REM CALL wget https://releases.wekan.team/wekan-%1-amd64.zip
 
 ECHO 3) Unarchiving new WeKan
 CALL 7z x wekan-%1-amd64.zip
 
 ECHO 4) Reinstalling bcrypt
-cmd /c "npm -g install @mapbox/node-pre-gyp node-gyp fibers"
-cmd /c "npm -g install node-gyp"
-cmd /c "npm -g install fibers"
-cmd /c "CD bundle\programs\server\npm\node_modules\meteor\accounts-password && npm remove bcrypt && npm install bcrypt"
+REM cmd /c "npm -g install @mapbox/node-pre-gyp"
+REM cmd /c "npm -g install node-gyp"
+REM cmd /c "npm -g install fibers"
+CALL DEL /F /S /Q bundle\programs\server\npm\node_modules\meteor\accounts-password\node_modules\bcrypt
+cmd /c "CD bundle\programs\server\npm\node_modules\meteor\accounts-password && npm install bcrypt"
 REM # Sometimes may require building from source https://github.com/meteor/meteor/issues/11682
 REM # cmd /c "bundle\programs\server\npm\node_modules\meteor\accounts-password && npm rebuild --build-from-source && npm --build-from-source install bcrypt"
 REM # CD ..\..\..\..\..\..\..
@@ -25,13 +26,13 @@ ECHO 5) Packing new WeKan.zip
 CALL DEL wekan-%1-amd64-windows.zip
 CALL 7z a wekan-%1-amd64-windows.zip bundle
 
-ECHO 6) Copying WeKan.zip to sync directory
-CALL COPY wekan-%1-amd64-windows.zip Z:\
+REM ECHO 6) Copying WeKan.zip to sync directory
+REM CALL COPY wekan-%1-amd64-windows.zip Z:\
 
-ECHO 7) Done. Starting WeKan.
-CD bundle
-CALL ..\start-wekan.bat
-CD ..
+REM ECHO 7) Done. Starting WeKan.
+REM CD bundle
+REM CALL ..\start-wekan.bat
+REM CD ..
 
 GOTO :eof
 

+ 2 - 10
start-wekan.bat

@@ -14,10 +14,10 @@ SET MONGO_URL=mongodb://127.0.0.1:27017/wekan
 REM # If port is 80, must change ROOT_URL to: http://YOUR-WEKAN-SERVER-IPv4-ADDRESS , like http://192.168.0.100
 REM # If port is not 80, must change ROOT_URL to: http://YOUR-WEKAN-SERVER-IPv4-ADDRESS:YOUR-PORT-NUMBER , like http://192.168.0.100:2000
 REM # If ROOT_URL is not correct, these do not work: translations, uploading attachments.
-SET ROOT_URL=http://localhost:2000
+SET ROOT_URL=http://192.168.0.21
 
 REM # Must change to YOUR-PORT-NUMBER:
-SET PORT=2000
+SET PORT=80
 
 REM #------------------- REQUIRED SETTINGS END ----------------------
 
@@ -33,14 +33,6 @@ REM SET DEBUG=true
 
 REM ------------------------------------------------------------
 
-SET ROOT_URL=http://localhost
-SET PORT=80
-SET MONGO_URL=mongodb://127.0.0.1:27017/wekan
-
-REM Writable path for temporary saving attachments during migration to Meteor-Files
-REM Create directory wekan-uploads
-SET WRITABLE_PATH=..
-
 REM # ==== AWS S3 FOR FILES ====
 REM # Any region. For example:
 REM #   us-standard,us-west-1,us-west-2,