Renaming the App
How to rename the app from /eden/(default)/(index) to /someName/(default)/(index)
Its easy to rename an app. Its use can be for displaying through appName for a site, for example host.domain/appName, where 'appName' = 'someName'
To rename the app, follow the following three steps:
- Rename the folder under web2py/applications/eden to web2py/applications/SomeName
- Change the name under web2py/routes.py to someName, and
- The management scripts http://eden.sahanafoundation.org/wiki/InstallationGuidelines/Linux/Server need updating (/usr/local/bin)
- Check the uwsgi error log file (tail -f -n 45 /var/log/uwsgi/prod.log). Check if the app name is hardcoded (which should not be), I got the message as:
EOFError: EOF when reading a line OOOPS mule 1 (pid: 12241) crippled...trying respawn... spawned uWSGI mule 1 (pid: 12243) application eden does not exist, create (y/n)?Traceback (most recent call last): File "run_scheduler.py", line 16, in <module> run('eden',True,True,None,False,"from gluon import current; current._scheduler.loop()") File "/home/web2py/gluon/shell.py", line 208, in run 'application %s does not exist, create (y/n)?' % a)
For this error, use:
cat /home/web2py/run_scheduler.py
-CUT-
# Start Web2py Scheduler -- Note the app name is hardcoded!
if __name__ == '__main__': run('eden',True,True,None,False,"from gluon import current; current._scheduler.loop()")
Last modified
9 years ago
Last modified on 08/26/15 17:33:29
Note:
See TracWiki
for help on using the wiki.