This is completed in the Volume section, where a local folder is mapped to a container folder. It seems that webstation makes deploying python based web-apps quite easy so solving this issue would greatly benefit newbies like me who are looking for a quick and easy deployment method on their Synology NAS. Volume Mapping How to use Docker on a Synology NAS When creating a Docker container, the important data must be mapped to a local folder. I would greatly appreciate if someone could try this out on webstation to figure out the correct setup. However, when I browse to port 8080 I get error code 500 on my browser Internal Server Error I added this "python-flask profile" in the virtual host's python profile to make sure all modules are accessible to the python script. In webstation's script>python page : I setup a "python-flask profile" and added the required flask module: I took the command-line parameters in that example and made the uwsgi.ini file and placed it in the same folder: The "main.py" python script residing in this folder is the example in the quickstart page: from flask import Flask RSS Feed Powered by Create your own unique website with customizable templates. Mount the Synology volume from a Linux workstation running Gnome, and run Disk Usage Analyzer on it. In this profile I then setup the appropriate folder containing the python script, callable entry function and uwsgi file: Some more instructions: Can be installed via '/opt/bin/ipkg install ncdu' - if you have ipkg set up. Open your profile in Nano with: nano /.profile. Now that SSH is enabled, we need to set up your profile in order for the git command to work. Search for ssh and click Terminal & SNMP. On webstaion>service portal : I setup a virtual host with nginx listening on port 8080: Next, make sure you have SSH enabled: Open up Control Panel. I followed the python-flask quickstart example on uwsgi documentation page: I am unclear about what to put in the uwsgi file. Lee - 1973 Spoilers of the North - 1947 Spooks Run Wild - 1941 Springtime. I was wondering if someone can help me figure out a simple hello world example. Movie Catalog (GNU General Public License) Data Crow (GNU General Public. I noticed that Synology's native webstation which uses uwsgi framework, has recently added support for python script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |