Difference between revisions of "Compile New Viewer"
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<p style="text-align: center"><span style="font-size:large">'''How to compile new viewer'''</span></p> | <p style="text-align: center"><span style="font-size:large">'''How to compile new viewer'''</span></p> | ||
− | <span style="font-size:larger">1. Check out Catglobe source code. | + | <span style="font-size:larger">1. Check out Catglobe source code.</span> |
<span style="font-size:larger">2. Open command line change working directory to CatGlobeWeb\jmvc</span> | <span style="font-size:larger">2. Open command line change working directory to CatGlobeWeb\jmvc</span> | ||
Line 12: | Line 12: | ||
<span style="font-size:larger">4. Build Catglobe Solution.</span> | <span style="font-size:larger">4. Build Catglobe Solution.</span> | ||
− | <span style="font-size:larger"> in Default.aspx.cs debug mode is defined:<br/> #if DEBUG<br/> public const bool IsDebugMode = true;<br/> #else<br/> public const bool IsDebugMode = false;<br/> #endif<br/> So in production the build will use the production files as compiled in place, no need to move them anywhere | + | <span style="font-size:larger"> in Default.aspx.cs debug mode is defined:<br/> #if DEBUG<br/> public const bool IsDebugMode = true;<br/> #else<br/> public const bool IsDebugMode = false;<br/> #endif<br/> So in production the build will use the production files as compiled in place, no need to move them anywhere</span> |
<span style="font-size:larger">5. Commit new files to bitbucket</span> | <span style="font-size:larger">5. Commit new files to bitbucket</span> | ||
+ | [[Category:Deployment_guidelines]] |
Latest revision as of 06:06, 15 October 2015
How to compile new viewer
1. Check out Catglobe source code.
2. Open command line change working directory to CatGlobeWeb\jmvc
3. Run command "js.bat catglobe\questionnaire_viewer\scripts\build.js". This command will compile all files in directory to make 2 production files for deploy to server:
+ catglobe/questionnaire_viewer/production.js
+ catglobe/questionnaire_viewer/production.css
4. Build Catglobe Solution.
in Default.aspx.cs debug mode is defined:
#if DEBUG
public const bool IsDebugMode = true;
#else
public const bool IsDebugMode = false;
#endif
So in production the build will use the production files as compiled in place, no need to move them anywhere
5. Commit new files to bitbucket