I am trying to run a siddhi app from command prompt. What is the command to run the app from command prompt instead of using the editor?
Use the WSO2 SP worker profile, this does not have a GUI and is made lean to run in production. Start the worker though ".bin/worker.sh start" and deploy the Siddhi apps by placing them in /deployment/siddhi-apps.
Refer: https://docs.wso2.com/display/SP430/WSO2+Stream+Processor+Profiles
Related
I am building a Webapp using Django and want to generate some comments from a command-line tool present in the same directory as the web app. What are the different methods to call this tool from the web app and run commands in the terminal and extract output from it and display it in a web app?
I want to launch Django application without giving command "python manage.py runserver".
Like how php works, when hit the index file it will launch the application but in django/python i didn't find any way to do that in windows OS except run the project from command line which is cautious for robust application.
Please let me know/suggest any idea about if it is possible for windows or not??
I have a Django app that I am trying to deploy to AWS.
I need two command lines to run the app. One command line will be used to runserver and another one to run a background task. That is how the app runs in my localserver.
How do I start two command lines in AWS?
As i can understand your django app is currently in development mode, I've used tmux for development mode, this page will guide you better to use tmux. Once you have started a tmux session run python3 manage.py runserver and then detach to the session using ctrl-b then press d and now your app will run even after you exit the shell.
To know more about tmux go through this page.
In case you have to run your app in production mode Don't use above method, run your app with any of nginx or apache2 server. This tutorial can guide you to set up your django app with nginx and gunicorn.
Supervisor is a good way to control that. You can run a lot of processes (like server, migration, collectstatic, Celery) easily.
Additionally, you can ensure that all processes will run again when your machine reboots.
And, as everybody said, you have to install a server in production that supports WSGI in order to run Django properly.
I have a batch File that runs Django Server and it works perfect.
c:\Python27\python.exe manage.py runserver 8003
and that I am using a 3rd Party app NSSM https://nssm.cc/
Which run my Batch file as a Windows Service.
the point is the Service does not start the Server. How can I run the server using this service; the service will open the cmd and execute the command.
Should I use another 3rd party app or is there any command that I can add to my batch file and update it the serive
If you want to run django as a Windows service for development purposes (see the comment above), I have had good luck with instsrv and srvany, both Windows tools that work on all Windows platforms. See https://www.iceflatline.com/2015/12/run-a-windows-application-as-a-service-with-srvany/ for details.
I have python script that execute android emulator
how I can execute this python script on startup?
the problem is that I open ssh session execute the android emulator and when I close the ssh session the emulator stop
You meant to say you want a script to be executed every time you logged in to a machine. If I understood your requirement correctly, then have a look at the link