i am very new to Blynk app and it is the first time i set up an local server. After having some trouble to connect a node mcu to the server, cam facing something different now. I could not find the right answer here.
Autostart is not working if i use following Giude
Also all other things i found in this community seems not to work. Any ideas?
If i start the Blynk serve via ssh (terminal on my macbook) it works smooth as peanut butter, but as soon as i close the terminal window, the server seems to shut down. Same if i do this locally on my Pi
Your issue is Linux related, not Blynk specific. Search this forum and/or Google for the many different ways to run a Linux script (in this case your Server) at boot up, or via a terminal command and have it stay running upon the terminal closure. Although that last one is as simple as adding a space and & at the end of the command.
8- Manual start Blynk server
java -jar server-0.39.4-java8.jar -dataFolder /home/pi/Blynk
9- At this point, the Blynk Server successfully started. Take a note on login ID and password for the web portal. To get out of this terminal windows, press CTRL+C
10- Enable Blynk server auto start each time power failure or hardware reboot
a. Open Terminal and type: sudo leafpad
b. Browse to FileSystem\etc\rc.local then add this line as below then save it.
java -jar /home/pi/Blynk/server-0.39.4-java8.jar -dataFolder /home/pi/Blynk &
c. At the Terminal, type: crontab –e
d. Add the following line then save it.
@reboot java -jar /home/pi/Blynk/server-0.39.4-java8.jar -dataFolder /home/pi/Blynk &
e. Reboot the server then Blynk should automatically start