Deployment
Deploying Python Programs
**1.** to directory Update code
**2.** Changing code----configuration database
**3.** test run (./python.py)
**4.** write a script. sh file, put the python file you want to run in the script (the script file is in the same level directory as the Python file)
**5.** See what's Inside crontab
Crontab-l
**6.** Check to see if the contents of crontab are running in mail?
----------
1. sh file
#!/bin/bash is a script executor
2, Crontab-l
See what's Inside crontab
3, 0 * * * */home/wisdombud/jetty/wisdomhr-pyspider/src/yjbys/ostart.sh
Minute/time/day/month/week file path
----------
Deploying Java Programs
**1.** put the well-made jar pack on the server
Two types of---->
Local (Dos) to server:
Into the Lib directory, locate the jar package that you want to replace RM off. RZ add a new jar package
Server (113) to server (128):
SCP Local File Destination path
EG:SCP *.jar/home/wisdombud/jetty/wisdomhr-compute/lib
**2.** Modifying a configuration file (database information)
Into the CFG directory, vim appconfig.properties modify the database information
**3.** Test Run
Go to the Bin directory, write the script file
The runtime memory that can be modified in the script/file to be run
eg:java-xmx512m Com.wisdombud.wisdomhr.sync.JobSyncMain
When the test runs./sh.sh
**4.** to use Nohup when running.
Nohup./run.bat &
**5.** to see if a Java program is running
JPs
Linux----Deployment