Eclipse send local edited files with Eclipse FTP - eclipse

I'm really new with Eclipse. I'm a programmer and i have 2 site that i work on.
One is setup with a GIT.. so when i edit a file, i commit the change et the file is send to my server.
For the other site, i use Notepad ++, and when i edit my files, i use filezila to send it to the server..
My question, is, can i use Eclipse to edit the file and then send it via FTP ?
So i will not need Notepad++ and Filezilla anymore!
Here what i did: i create a new project (local), so i can edit the file in Eclipse. But to send it via FTP i see this topic How do I add FTP support to Eclipse?
and i created my connection with Remote System! And everythings works..
But the problem is, what i have to do to 'commit' or 'upload' my edited files ?
Because if y right click on my project, and i go hover de TEAM, only 2 options appears: Apply Patch, Share Project
There is no commit or send or upload...
What should I do?

RES works a little differently than the Team plugins. You have to use the RSE perspective and create a connection to your FTP server. Then you can interact with files through that connection (not through the Team menu).
See this video for a demonstration; it's an older version but should be close enough to get you going.

Related

ftp-kr - Cannot edit in read-only editor

I cannot figure out how to use the ftp-kr extension for VS Code properly. I have read and re-read the GitHub Wiki and the README documentation and cannot find any other help for my issue. I posted this question to the project Issues on GitHub but have yet to receive a response.
ftp-kr is just a simple extension for editing files via FTP that are located on a remote server. Many other users seem to be using the extension with no issue.
I installed the extension, and then I successfully edited the connection settings (in ftp-kr.json) and successfully made a connection to the remote server I am trying to edit files on.
I opened the FTP-KR: EXPLORER pane to look at all of the files on the server, but if I double-click any of the files to open them and then try to edit them, I am unable to type and just get a warning in VS Code that says "Cannot edit in read-only editor".
I have tried right-clicking on files and clicking the "Download This" button, thinking that maybe I need to download a local copy of the files to edit before uploading the changes. However, whenever I click the "Download This" option on any file in the ftp-kr Explorer, it just gives me an error message that says "[file_name] is not in remotePath".
I tried running the >ftp-kr: Download All command, but it just spits out a notice that says "Nothing to DO".
How do I edit files located on the remote server and save those changes to the server?
P.S. I have tried the solutions found in this question but unfortunately none of them seem to work. Particularly, "code-runner: Run in terminal" is not in my settings and "Edit in Local" is not a context menu item that appears in my editor.
After a number of months, I finally have a solution to this thanks to the developer eventually responding on GitHub. There are a few things going on here.
Any file that a user wishes to modify must be downloaded as a local copy on the user's machine first and then that copy can be uploaded to the webserver via FTP.
ftp-kr cannot auto-download individual files. (Either when they are double-clicked on or through any other method.) It can only download entire directories, and those directories can be changed by using the localPath and ignore options in the configuration file, then stopping and restarting the ftp connection.
The "Download This" context menu option that appears is a piece of non-implemented code. It will not do anything.
>ftp-kr: Download All is the preferred way (by the developer's intent) to download the remote files onto the user's computer. The fact that it was returning an error before was a bug which has now been fixed.
Confusingly, the user can view the filenames and context of every file on the remote file system using a convenient tree view, you just cannot simply download any of those files individually.
In all, this plugin does not provide the functionality that I hoped it would have. (Namely, being able to easily download, modify, and upload individual files.) So I know how to properly use it, I will just be switching to a different plugin for my purposes.

How to deploy my project to localhost?

I'm working on a website and right now I am using FileZilla to make changes to it. Every time I make a change, I have to re-upload the file to the website through FTP and then wait for it to update online. I want to just deploy my project to localhost so I can get instant results and then just upload the whole project when it's finished. How do I do this? All I have is a set of directories with the files in them.
You really need to use a web/application server such as IIS/Apache.
For PHP projects go for WampServer/XAMPP.Easy to setup and works very well.
(maybe too obvious)
If you are working only static content based on html/css/js you can just edit and view changes directly by opening the local file in your browser and refresh each time.
Furthermore for css and html you can edit your code "live", directly into browser and see changes immidiately.
Another option is to edit files with an editor that supports ftp like notepad++, you can connect via ftp, open and edit files directly from server (like php,html,css,js) because once you save the editor will automatically upload your changes.
Heres a good explanation about notepad++ and ftp plugin.
Localserver
If you work with php (and even only with html/css) the best choise is to run a local server that rappresents a real environment in which your code will run. As said by others XAMPP is a good choise for begginers because of simple installation and management.
XAMPP download
XAMPP tutorial
Once installed put your folder inside C:/xampp/htdocs/yourCodeFolder
Run the xampp control panel and start the Apache server.
Finally navigate with your browser to: http://localhost/yourCodeFolder/

How to remote save in Eclipse PDT like Netbeans?

I have a problem with Eclipse remote save.
I have been using Netbeans for 2 years, my projects are stored in local and also in remote test servers.
When I opened, change and saved files in Netbeans, it also saves (overwrites) the files to remote location.
Configuration of Netbeans is described here : Netbeans Remote Sync
Another thing is checkouted code from SVN is in my local, and I only commit from local, never from remote, I mean I use remote server only for testing purposes.
I decided to switch Eclipse because of other reasons, but I cannot succeed to prepare a similar development environment.
I tried remote explorer,it's complicated and I cannot find a solution to my problem. There are some suggessions by using Ant, I think, this can be easy thing.Ant is much more for me.
I am open to any suggessions, to prepare a similar development environment I described above in Netbeans case.
Regards...
The link to the NetBeans page only shows the settings for localhost connection.
The remote connection requires an ftp server on the remote machine.
First I will show the Eclipse settings for localhost connection.
File -- New -- PHP Project.
Project Name : SwitchLoc
Click
Folder -- Next
Settings as shown on image. Click Browse
Create a new connection.
Settings as shown on image. Click Next
Only to see what's going on : Click Next or Finish
Back to Connection select the one just created.
Select a folder under your www root.
Create a new php file
Right click on Switch new -- PHP File -- echo.php
Richt click on echo.php -- Properties -- Run/Debug Settings -- New -- PHP Web Page
Settings as shown on image. Click Browse
Uncheck Auto Generate and change the URL
Switch to Tab Common
Settings as shown on image. Click OK
Start Debug
select switch-local
Output
Next: Create a remote connection to a Remote Server with FTP and remote debug.
Follows in the sequel.

Netbeans - Open remote folder/new project

I have been using Netbeans for several months now and like it a lot. I am trying to enable a way to create a project which accesses live files on my server to make changes. When I create a project using a remote source, it starts downloading all the server files to my computer. This would be just fine, except for the fact that (a) the server has a few gigs of files on it and (b) there are two of us that will be making changes on the server.
In the past, I have worked with IDEs that just open an FTP or SFTP connection and will download the file you want to edit, and then upload that file back to the server when you save it. Preferably, this is what I would like Netbeans to do.
I have tried adding a FTP folder in Windows, but Netbeans won't open it. I have tried using Swish and setting up an SFTP folder, and Netbeans won't find the Swish folder altogether.
On a side note, I understand what I am doing is horrible practice, but it is a small site and I am usually the only one working on it. I haven't worked on the website in the past several weeks and just thought it would be easier to get access directly than re-downloading the entire server's worth of code/images/videos/etc. Any help would be appreciated.
NetBeans does not support what you want to do. However, if you put your site under Subversion/Git (revision control), you could check out the content, modify it locally and push modification back remotely.
This would also help avoiding code clashes when your friends work on your website too.
Actually Netbeans supports this for php projects.
Just choose :
PHP Application from remote server
(but git is the best solution anw as it gives you version control as well but the above is useful if you want your server files to be updated when you just press ctr+s)

Deleting files on remote server

I have a PHP project in NetBeans with remote files (over sftp). When I create, modify anything these changes happening both locally and on my web server. However when I'm trying to delete a file or a folder it gets erased only locally. What could be the problem?
Permissions seems to be ok, all files belong to the user I'm using to access the server.
I'm using Netbeans 6.9.1, default configuration, all updates installed.
Netbeans does not have a synchronization function. It is limited to downloading and uploading files. What you can do is to use some external tool, for example WinSCP is capable of synchronizing local and remote directories.
I read what you wrote... but I think it could be a permissions problem.
I also use NetBeans and when I delete a file from the project window it first erase it locally and then syncs with my server.
I login through sftp (using vsftp) as root, which is a bad thing, but you could try this too to be sure if it's a permission issue.
You mistakenly turned off the settings. Please follow these steps:
Right click on the project name
Select properties
From the list of the left select 'Run configuration'
On the left almost down, look for the setting 'Upload files:'
Make sure you set that to 'On Save'
All the best man