WebDSL on Cygwin
cygwin
(click once)
devel > curl-devel
devel > gcc-core
devel > gcc-g++
devel > make
devel > patch-utils
http://nixos.org/releases/nix/nix-0.12/nix-0.12.tar.gz
store in 'cygwindir'/home/'username'/
tar -xzf nix-0.12.tar.gz
cd nix-0.12
./configure
make
make install
. /usr/local/etc/profile.d/nix.sh (add this line to ~/.bashrc to since it needs to be executed every time you start a cygwin console)
( nix-channel --add http://hydra.nixos.org/channel/latest
nix-channel --update )
curl http://hydra.nixos.org/build/48543/nix/closure/webdsl-9.7pre2868.closure.gz | gunzip | nix-store --import
nix-env -i /nix/store/cxy3sy7pmk5fq2xi9r0jncqkpndprgvg-webdsl-9.7pre2868
export PATH=/nix/store/bb84s5afy67hlz2iz2qc1x2mzzcksa5a-aterm-2.5/bin:$PATH
export PATH=/nix/store/sm38rd9gmfcdqayqzvqw8qjszzaz3krx-strategoxt-0.17/bin:$PATH
export PATH=/nix/store/5j8jrhl4dhszgvw4y1b9hjfpkhh5z4f3-java-front-0.9/bin:$PATH
add jdk bin dir to path (though this might have been set in windows path by installation already), e.g.:
export PATH=/cygdrive/c/Program\ Files/Java/jdk/bin/:$PATH
and add the jdk dir to JAVA_HOME environment var, e.g.:
export JAVA_HOME=/cygdrive/c/Program\ Files/Java/jdk1.6.0_05/
extract ant zip file and add bin dir to path, e.g.:
export PATH=/cygdrive/c/webdsl/apache-ant-1.7.1-bin/apache-ant-1.7.1/bin/:$PATH
Tomcat 6, Binary Distributions, Core, zip direct link
extract zip file and add bin dir to path, e.g.:
export PATH=/cygdrive/c/webdsl/apache-tomcat-6.0.20/apache-tomcat-6.0.20/bin/:$PATH
Mysql, Windows Essentials (x86) direct link
easiest to install as service, which will be started automatically
set a root password using the configuration wizard
Running WebDSL
1 create a test app
test.app:
application test
define page home(){
"My first page"
}
application.ini (change tomcatpath and dbpassword):
export BACKEND=servlet
export TOMCATPATH=c:/webdsl/apache-tomcat-6.0.20/apache-tomcat-6.0.20
export JBOSSPATH=
export APPNAME=test
export DBSERVER=localhost
export DBUSER=root
export DBPASSWORD=... root password ...
export DBNAME=webdsldb
export DBMODE=create-drop
export SMTPHOST=localhost
export SMTPPORT=25
export SMTPUSER=
export SMTPPASS=
export SMTPSSL=false
export SMTPTLS=false
2 create the database
mysql -u root -p
create database webdsldb;
exit
3 start tomcat in a second cygwin shell
catalina.sh run
4 compile and deploy WebDSL app
webdsl cleanall deploy
5 open browser and go to http://localhost:8080/test
