Created
November 15, 2009 09:05
-
-
Save FND/235101 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
set PYTHON_EGG_CACHE=%CD%\Data\cache | |
set python_path=App\Python\App | |
set instance_path=Data\instance | |
%python_path%\python.exe %python_path%\Scripts\easy_install-script.py -U setuptools pip && ^ | |
%python_path%\python.exe %python_path%\Scripts\pip-script.py install -U tiddlywebwiki && ^ | |
md Data && ^ | |
%python_path%\python.exe %python_path%\Scripts\twinstance %instance_path% | |
rmdir /S /Q build store | |
echo installation completed | |
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
set python_path=App\Python\App | |
set instance_path=Data\instance | |
cd %instance_path% && ^ | |
START http://localhost:8080 && ^ | |
..\..\%python_path%\python.exe ..\..\%python_path%\Scripts\twanager server localhost 8080 | |
PAUSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo. | |
echo type "twanager.bat <arguments>" to invoke twanager | |
echo. | |
cmd || command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo. | |
echo resetting Python environment | |
echo N.B.: This requires backup directories to exist. | |
echo. | |
set python_path=App\Python\App | |
cd %python_path% && ^ | |
cd Scripts.bak && cd .. && ^ | |
rmdir /S Scripts && ^ | |
mkdir Scripts && ^ | |
xcopy Scripts.bak Scripts /E && ^ | |
cd Lib && ^ | |
cd site-packages.bak && cd .. && ^ | |
rmdir /S site-packages && ^ | |
mkdir site-packages && ^ | |
xcopy site-packages.bak site-packages /E |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
set python_path=App\Python\App | |
set instance_path=Data\instance | |
cd %instance_path% && ^ | |
..\..\%python_path%\python.exe ..\..\%python_path%\Scripts\twanager %* && ^ | |
cd ..\.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment