Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

upload only current file with netbeans

I'm using netbeans 6.9.1 to work on a php project, how do I manually upload a file without having to 'run' the project?

like image 607
Sam Avatar asked Jan 04 '11 15:01

Sam


2 Answers

Under the options->keymap, I mapped Ctrl-L to upload, which is easy enough.

The only other place to upload is to right-click the file in the project browser and 'upload', unlike aptana there's no button for it, which is what got me stumped.

like image 70
Sam Avatar answered Oct 18 '22 02:10

Sam


If you have the project's "Run Configuration" properly configured as a "Remote Web Site (FTP, SFTP)", then simply right-click on the file in the "Projects" pane and click on "Upload" in the file's context menu.

If you want to upload automatically on save instead of on run,

  • Right-click on the project node in the "Projects" pane (it's the top-most node in the tree)
  • Click on "Properties" in the project's context menu.
  • Click on "Run Configuration" in "Categories"
  • Change "Upload Files" to "On Save"
  • Click "OK"

If you sometimes want to upload on run, sometimes on save, sometimes only manually, sometimes to one server, sometimes to another server, or any combination of the run configuration options, then you can click on the "New..." button to create and save one or more run configurations. You can then choose which one is active on the run configurations project properties page, or set it through "Set Configuration..." on the project's context menu.

like image 4
RobertB Avatar answered Oct 18 '22 03:10

RobertB