Ubuntu 18.04 removed the /etc/rc.local file, so if you still want to use it:

1, su
2, vim /etc/rc.local

/usr/bin/env bash

# your start-application code

exit 0

3, chmod 755 /etc/rc.local

Test it out: reboot.