Note that there are some explanatory texts on larger screens.

plurals
  1. POGAE: managing dev and production versions of my app
    text
    copied!<p>There are a lot of things I need to do before uploading my production app to GAE. Its becoming very tedious and error-prone, and I would like to know some best-practice how to handle following requirements, and if some tools already exist for doing this: </p> <p>Dev and test environment on my local machine: want to use debug versions of my javascript files, Production: want to minify the files and also concatenate them into 1. E.g.: given this code in <code>mytemplate.html</code></p> <pre><code>&lt;script src="script1.js"&gt;&lt;/script&gt; &lt;script src="script2.js"&gt;&lt;/script&gt; &lt;script src="script3.js"&gt;&lt;/script&gt; &lt;script src="script4.js"&gt;&lt;/script&gt; &lt;script src="script5.js"&gt;&lt;/script&gt; </code></pre> <p>Wanted: some process to automatically minify the files, concatenate them into 1, and edit the code above so that it becomes:</p> <pre><code>&lt;script src="mytemplate.js"&gt;&lt;/script&gt; </code></pre> <p>Dev and test: use a <code>settings.dev.py</code><br> Production: use <code>settings.py</code> </p> <p>Some way to automatically switch to settings.py when pushing to production. i.e., I don't to manually edit all the py files and change all references to settings.dev.py to settings.py. Is a config file the recommended way to do this? I change a setting in my config.py file before pushing to production, and then the rest of the code picks up the right settings.py? Also, in python is the config file a .py file, or is it something else usually - i.e., what is the norm? (in .net we usually use xml for storing configurations)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload