I've just downloaded netBeans 7.2 and an ftp plugin. I would like to be able to make a folder (html, css, javascript, php) on my computer (which I made in eclipse) a NetBeans 'project' (at least that's what I think I want to do). Then, on save, upload to the remote directory online. Is there a way to do this?
Thanks!
Thomas
Go to Run - Set Project Configuration - Customize
Click Manage next to Remote Connection..
I guess you can figure out the rest..
Related
I am building a new workspace in Ubuntu 12.10 with Eclipse Juno. I have configured my project, imported my files, established a local Git repo and synced it to a remote on GitHub. However, all my efforts to be able to upload files (php, html, css, and other website files) to servers have failed.
I have both Remote System Explorer (RSE) and Aptana Studio 3. Though I have successfully established connections both to localhost for testing and to my live webserver, none of my attempts to upload have succeeded.
Ideally, when I save any file in Eclipse, it would automatically be copied to my /var/www for my localhost test server. I have researched several sync options without success.
Additionally, I want to be able to use Ctrl+Shift+U or similar to upload the current file to my public server.
I have spent much of the last two days reading and researching, but have found minimal documentation, and blog entries are for obsolete versions.
I have no Deploy menu item, the Aptana Publish menu item is disabled, and if I use Eclipse's Export command from the right-click menu, and choose my localhost connection, I get error "Unable to use connection." This, despite being able to browse the contents in RSE's pane. When I try to export to the public server, the error is "This operation will remove previous team provider settings that were set for MyProjectName. Are you sure you want to do this?"
I am making the change to Eclipse for a more efficient workflow but so far it has cost me many days of frustration and I still can't upload a simple .html file?!
Ok, as I understand it, you want to copy a file at save and upload it via FTP, yes?
You should look into Ant. You can configure Eclipse to run an Ant script when you save or build a project.
How to copy files with Ant
Ants FTP task
How to get ant to run when building a project
this post might be helpful for you, if you use Eclipse RSE: How to synchronize files over FTP with Eclipse RSE?
Moreover they mention there some problems with jdk7 (for the older eclipse version). Check that too.
For the actions you to be performed automatically/on keypress, well for that I didn't find any quick solution.
I love sublime text. The only thing I dont like is that there is no built in FTP plugin. The sublime sftp package, http://wbond.net/sublime_packages/sftp sucks when you are editing and uploading files continuously. I am looking for something like the notepad ftp, in which you can see all your files and folders on the side of your screen, when u edit something and click Ctrl+S, it uploads automatically to the server.
The alternate option is to use NetBeans or Eclipse for this. The main thing is that I should be able to see all the files and folders on the side and should be able to upload the changes just by saving. I tried the netbeans built in plugin but didnt satisfy me, or I was not doing it properly. please advise
https://github.com/NoxArt/SublimeText2-FTPSync free and realy good alternative.
You can right click on a file in the sidebar (with SFTP) and select "SFTP/FTP -> Sync Local -> Remote" and it will automatically upload that file or directory when anything in it changes (such as when saving).
You can also select "SFTP/FTP -> Browse Remote" to browse and open files on the server directly. If you save files opened this way, they will be uploaded automatically as well.
I'm using Netbeans to manage a PHP projects in a proprietary setup. Files are on a web server and I use netbeans sFTP to download and auto-upload the files as I change them. It works great and I've read of others doing this. This takes care of creating/uploading files as I change / create them. It also seems to remove files if I delete them locally.
Now, enter source control (in my case Git, but for this the type shouldn't matter). My source control has to be on the web server. This is apart of the proprietary setup.
Lets say I switch branches (which would be done on the web server, to be clear), can I and how do I reconcile all the changes from the server? This would include removing files and folders locally that no longer exist in the version I'm working with. It also includes updating file contents for changes.
Now, I am aware of the "Download" function in netbeans. In netbeans, I right click on a folder structure or the project (in the "Projects" pane) and Netbeans will proceed to download all changes but it does not seem to remove local files and folders that no longer exist on the server..
You may have a look at this solved issue/enhancement. It will be in NetBeans 7.2 and currently it is part of nightly dev builds
When I use Eclipse Remote System Explorer or Aptana plugin to upload files, the files are placed in a sub-directory of my intended upload folder. The sub-directory is named according to my project name. How do I upload to the folder I intend to upload to without the files going into a sub-directory? Thanks for your wisdom!
I could not speak of RSE, but in Aptana Studio everything depends on how did you setup a connection between FTP and local project. Basically, if your ftp://xyz/myproject is connected to myproject in workspace, all files will go where intended to without sub-folders.
See http://wiki.appcelerator.org/display/tis/FTP%2C+SFTP%2C+and+FTPS+Deployment for more information.
Regards,
Max
I am using Eclipse PDT with the Zend community server to develop PHP.
If I write some code and hit Run As...PHP Web Page, I get "Page cannot be found". This makes sense since my workspace is off in my documents folder, not in the Zend/Apache's htdocs tree.
So one option would be to move my workspace to a folder under the Apache htdocs. But that just seems wrong ;-) Also, I keep my workspace in a Dropbox folder.
Is there an alternative directive/configuration setting for Eclipse PDT that says "when I say Run or Build, I want you to copy the project to folder X and run it as a web page from there". Or perhaps something else I'm missing about Eclipse PDT?
I found a method, using Ant: http://www.tellingmachine.com/post/Configuring-Eclipse-PDT-to-work-with-Ant-build-tasks.aspx
Here is my method for developing PHP on Windows in Eclipse:
Download the Zend all-in-one Eclipse environment
Download the Zend Server CE
Install Zend into someplace like c:\Zend. If you put it in Program Files, you'll need to do extra security configuration or else your build directives will fail.
Using the link above to setup Ant and a build directive
Wah-lah. You can setup a Run Configuration and then Run As... and view your php script in a web browser.
You could also use the stock Eclipse PDT and WAMP and achieve the same effect. The key is (1) putting your htdocs outside of Program Files, and (2) using Ant to automate the build copy.
http://ventralnet.blogspot.com/2011/03/eclipse-pdt-auto-deploy-webapp-to.html
You can use a combination of ANT and custom builders in eclipse to auto copy your web app to your web root