Linux Powered By Azure – NetBeans Editing
When it comes to editors there are a few that stand out. Visual Studio is a first class editor. Packages can be added and it can be customized to fit your needs. C#, VB, C++. You can do Unity Development in it, Xamarin Development, Arduino Development. There are a ton of cool features and uses. However, it does not run on a Mac or Linux. When it comes to those platforms there are also some good options. PhpStorm, Eclipse, Android Studio, xCode and more. The editor I like to use, especially when I am building PHP sites is NetBeans. I have been a fan of NetBeans for some time now. Lightweight. Easy to use. Robust. And more importantly, it has debugging and remote publishing built in.
I am going to walk through how to set up your local machine to connect to a remote server to fetch files, debug and deploy.
- Azure Subscription – hopefully you have signed up already, if not, you can sign up for a free trial or you can join BizSpark. To learn more about BizSpark click here.
- The Linux on Azure Tutorial
After you have downloaded and installed NetBeans open it up. Get familar with the editor for a bit.
In order to “get” the files to edit and debug we need to set up a project first.
First click on the “NEW PROJECT” icon or File -> New Project
You will be presented with a few choices of templates but for our example we want to choose
- PHP -> PHP Application from Remote Server
The second step is configuring where the files will be stored locally.
- Project Name – name of your project
- Source Folder – this is where your files will be saved when they are brought down locally
- PHP Version
- Default Encoding
- Metadata – you can keep this unchecked and it will store all of the versioning in the same folder, or you can select a different folder.
The third step is your connection to the server.
- Project URL
- Remote Connection – more on this in a moment
- Upload Directory – location of the root of your project
If you click ‘Manage” you can manage your remote connections.
Fill out the appropriate info and if you have a private key you can associate it here.
Once done you can click next to go to step 4, which is downloading the project.
The download will run and when finished you will have all your project files local.
Now we are able to connect to our remote server and edit and change files. Next we will configuring remote debugging.