Open Ti-webdev opened 7 years ago
Interesting, didn't know it was possible to run Node/Hotel under Android. I'm updating https://github.com/typicode/user-startup to better handle this and then will update Hotel.
Hotel won't be started automatically though. Don't know if it's an issue for you or not?
That said, I'm not even sure it's going to be enough or if there's going to be side effects as Android is kind of an edge case for this project.
Could you try running directly Hotel daemon?
$ node /path/to/hotel/node_modules/hotel/lib/daemon/index.js
Runnng daemon directly works, thanks. But without cli adding hotel's services unuseful.
I dug more deeper and saw that without support user-startup cli/daemon.js hotel will not be started :( Maybe we can use $HOME/.profile at user-startup module to fallback on "unsupported" systems?
Just curious, are you running directly an Android environment or is it in a Virtual Machine run from another OS just for Android dev? Do you have some kind of Android laptop?
Do you know if it supports .desktop
file and /home/username/.config/autostart
?
http://askubuntu.com/questions/159008/how-to-add-startup-applications-in-lubuntu
For reference, here's the one generated for hotel
on Linux env:
[Desktop Entry]
Type=Application
Version=1.0
Name=hotel
Comment=hotel startup script
Exec=/home/typicode/.nvm/versions/node/v7.4.0/bin/node /home/typicode/.nvm/versions/node/v7.4.0/lib/node_modules/hotel/lib/daemon > /home/typicode/.hotel/daemon.log
StartupNotify=false
Terminal=false
I'm trying to use just android phone with termux app, just for fun.
Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager.
With termux I install node and in many cases it works ok. Desktop Entry looks like not appropriated :(
I'm trying to start hotel under android and got an error: