Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remotely deploy code to the BeagleBone? #49

Open
jadonk opened this issue Apr 25, 2018 · 4 comments
Open

How to remotely deploy code to the BeagleBone? #49

jadonk opened this issue Apr 25, 2018 · 4 comments
Assignees

Comments

@jadonk
Copy link
Member

jadonk commented Apr 25, 2018

From @bennyn on March 5, 2017 18:45

Hello, I am new to the BeagleBone community and I would like to know if it is possible to deploy JavaScript code remotely to the BeagleBone?

Until now I always coded on the BeagleBone (using the Cloud9 environment) itself. But I would like to code on my personal computer and then deploy it from there to the BeagleBone. Is this possible?

I know that the Tessel microcontroller supports this way of coding by running tessel run my-app.js.

Copied from original issue: jadonk#148

@jadonk
Copy link
Member Author

jadonk commented Apr 25, 2018

From @jgtaylor on March 6, 2017 11:19

i do my dev on my laptop and push to github, then pull from the BBblack.

You could also do a rsync or an scp from your dev host to your BBblack. If you install something like pm2 and use it to watch wherever you're putting your project, it will restart the app if it detects changes, so that after each update iteration, it automatically runs the app.

another possibility (but is kind of overkill) is to run a git server on the BBblack and just push your code there.

@anujdeshpande
Copy link

Makes sense to add a over the internet option? Using something like gists from GitHub? Not sure how we'd get the output back? Maybe using another gist? (not sure if this makes sense for us, but would love to have Particle.io like functionality)

@jadonk
Copy link
Member Author

jadonk commented May 21, 2018

I did something like this at one point. Since BoneScript creates an RPC server.

https://github.com/beagleboard/bonescript/blob/7e1e6ce67a9d48a5f454b6d11e34e2dfbef069d2/test/TODO/remote_bonetest.js

BTW, this really needs some security. That should trump some of this other development. Just some kind of secure session creation when using the web server.

@vaishnavachath
Copy link

^Sure , I will go through it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants