-
Notifications
You must be signed in to change notification settings - Fork 3
install
You can install or upgrade linkero with:
$ pip install linkero --upgrade
Or you can install from source with:
$ git clone https://github.com/ingran/linkero.git --recursive
$ cd linkero
$ pip install .
Go to the directory containing your project folder created using linkero
, open the shell and execute nano:
nano start_linkero.sh
Inside, write this piece of code if you want to save log:
cd `dirname $0`
cd linkero_project_name
python project_main.py > /tmp/project.log 2>&1 &
Or this one if you don´t want logs:
cd `dirname $0`
cd linkero_project_name
python project_main.py > /dev/null &
Then, save the file with CTRL+O y close the editor CTRL+X.
Set up execution permission on the script:
chmod +x start_linkero.sh
Execute the script with:
./start_linkero.sh
It is important to highlight that you must use the script and not to execute python_script.py
. If you do that, the file will need execution permissions and it will modify file into Git versioning
Add into etc/rc.local
file a line to execute the script start_linkero.sh
:
/path/start_linkero.sh &
Where path
is the path containing the script, with your project folder created using linkero
.