We all got development server at our work. But we all like to have a dev server for our cool stuff we do at home. It may be freelance or pure technical interests.
We know we can set it up, but how and the associated complexities keep us form really setting up a dev server for home.
So let's see how we can do this on a Raspberry-pi.
What you need
- Raspberry-pi - that's the whole point, right :)
- A Micro USB charger - for the PI
- An Ethernet cable - for initial connectivity. Later with a wifi dongle you can set-up a wifi connection.
- A microSD card (minimum 8GB, and cards up to 32GB seem to work fine)
- A USB keyboard
- An HDMI cable and monitor
- Install Raspbian on PI.
- Install remote desktop software on PI (it's easy to connect to PI this way than using mouse/keyboard/monitor whole setup)
- setup ssh on PI
- Install a web server
- Setup access to your local server through internet. You can user NgRok for that.
- Install your preferred dev environment(java based/node.js based etc)
- Setup a project on Bit-bucket
- Setup access from PI to your Bit-bucket project
- Configure PI to pull latest code from the Bit-bucket.
- Now you are there push you code to Bit-bucket and build it on PI
So that's all you need to do. If you already got experience on this, you can set it up easily.
Otherwise just see the detailed instructions on most of these steps on this blog post
How to Turn Your Raspberry Pi Into a Development Server .