#labels Phase-Deploy *Download Erlang installer:* http://www.erlang.org/download.html *Download YAWS* http://yaws.hyber.org/download/ *Download Erlyweb:* http://erlyweb.org/ *Download Eclipse* http://www.eclipse.org/downloads/ ==1) Install Erlang == just run the installer ==2) Install YAWS== fixes for windows (1.74): * rename the "yaws-1.74/src" directory to "yaws" and copy a copy of it into "src" (some of the files in src ecpect their include files in yaws/src/ - under unix I would use a link to fix this problem :-( * download windows installer http://yaws.hyber.org/wiki/showOldPage.yaws?node=YawsAndWin32&index=1 win32.tar.gz * copy content from win32.tar.gz into directory "yaws" * change install.cmd (only if you do not have an english Window!!!): * SET HOME="%HOMEDRIVE%%HOMEPATH%\Eigene Dateien" * IF NOT DEFINED ProgramFiles SET ProgramFiles="c:\Programe" * goto directory "yaws" and run on cmdline "install YAWS" * copy result from "C:\Programme\yaws-1.74" to"C:\Programme\erl5.5.5\lib\yaws-1.74" changes in "C:\Programme\erl5.5.5\lib\yaws-1.74\yaws.bat": * add SET YAWS Verzeichnis * change "SET conf=-conf %~s1" to "SET conf=-conf %1" * change "%YAWS:\=/%/ebin" to "%YAWS:~1,-1%ebin" ==3) Install ErlyWeb== * extract content of tar and copy it to "C:\Programme\erl5.5.5\lib" * modify path to YAWS include in "C:\Programme\erl5.5.5\lib\erlyweb-0.7\Emakefile" to "{i,"C:/Programme/erl5.5.5/lib/yaws-1.74/include"}" modify "make.bat": {{{ C:\Programme\erl5.5.5\bin\erlc make_erlyweb.erl C:\Programme\erl5.5.5\bin\erl -noshell -run make_erlyweb -pa ebin -run erlang halt }}} * delete all files in "C:\Programme\erl5.5.5\lib\erlyweb-0.7\ebin" * run "make.bat" ==4) Install Eclipse == * copy "eclipse" to "C:\Programme\" ==5) Install Erlide (Erlang IDE for Eclipse)== Then in Eclipse, choose Help->Software Updates->Find and install...- >New features and create a new remote update site, pointing it at http://erlide.sourceforge.net/update . Follow then the normal installation procedures. After restart you will be asked to provide the erlang directory "C:\Programme\erl5.5.5\" * setup start YAWS from Eclipse: * choose Run-External Tools->Open external Tools Dialog.. * create new program "Start YAWS" * Location: C:\Programme\erl5.5.5\lib\yaws-1.74\yaws.bat * Working Directory: ${project_loc}\ebin * Arguments: -i -I "${project_name}" -c "${project_loc}\yaws.conf" If you start YAWS from Eclipse, yaws.conf needs to be in the root directory of your project. ==6) Create a ErlyWeb project== * open Eclipse und go to the "Erlang console" window (you can only type in the input area - not inside the output window!!!) * enter 'erlyweb:create_app("blog", "c:/temp").' * create a new erlang project named "blog" and change Source folders "src" to "src;src/components" * import from filesystem all files from 'c:/temp/blog' * create yaws.conf in the root folder of the project: {{{ port = 8000 listen = 127.0.0.1 docroot = "C:/Dokumente und Einstellungen/HeiAn/workspace/blog/www" appmods = appname = blog }}} ==7) Start YAWS== * select the top level project folder "blog" * select menu Run->External Tools->Start YAWS * select menu Window->Show View->Other->Internal Webbrowser * open the URL http://127.0.0.1:8000/blog and see {{{ Welcome to 'objectstore', your new ErlyWeb app. Let the Erlang hacking begin }}}