I just switched to the php editor PhpStorm. With other editors I have used, editing files through ftp went like this:
Browse the file in the explorer
Open the file in the editor
Make changes
Press save
This would automatically first download that single file and show it in the editor, and then upload that file to the server with the changes.
Now I'm trying to add an ftp connection in PhpStorm, but it immediately downloads all files to my pc. Is there a way to have the workflow I just described on PhpStorm, without downloading the whole server.
There is uncompleted answer for that,
File > New Project from Existing file ... > web server ... via FTP/SFTP/FTPS.
Than fill the forms to the end, The local project on the left will be empty.
chose Tools > Deployment > Browse Remote Host.
This will show the Host files and folders on the right.
Double click to open the file and Alt+Shift+Q to upload it.
Why uncompleted answer?
Because when you open multi files and edit some, you will not know which are edited and not uploaded from the unedited files.
-Phpstorm 2016.3.2
Add a File > New Project from Existing file ... > web server ... via FTP/SFTP/FTPS..
In the last screen, where you set the project root, select the correct folder as project root and also select it as exclude from download
Save your project and you're good to go. No download happens.
Please refer my tutorial which explains how to access remote files using ftp . We can edit the files and automatically upload the files to the server on save.
http://www.pearlbells.co.uk/edit-remote-files-phpstorm/
Main steps :
Select File->New project from Existing files
Select the checkbox as shown in fig (refer blog for images) and click next.
Enter projectname
From the dropdown select ‘On explicit save atcion’
Add new remote server
Enter Ftp details
Select the remote path.
Refer the tutorial for demo images and explanation.
Related
When I install PhpStorm from JetBrains Toolbox app I do not have an option to open folders as project when right clicking
Sadly JetBrains Toolbox App does not provide such functionality. Only standalone installer has an option to make them right now. You will have to either use that... or create such entries manually.
https://youtrack.jetbrains.com/issue/TBX-2478 -- watch this ticket (star/vote/comment) to get notified with any progress.
To add an entry to the Windows Explorer's right-click menu:
you can use FileTypesMan by NirSoft or a similar tool.
or create such entry manually, e.g. see this comment for a basic .bat file: https://youtrack.jetbrains.com/issue/IDEA-114307#comment=27-2125363 (at very least it lists Registry keys where to create such an entry).
I found this from Jet Brains :
Click Open on the Welcome screen or select File | Open from the main menu.
In the Select Path dialog, select the directory that contains the project to open.
Drag the desired project from your file chooser right to the Open Project dialog without locating it there. The respective file in the dialog will be found automatically.
Specify whether you want to open the project in a new window, close the current project and reuse the existing window, or open the new project in the same window with the current one. Refer to the Opening multiple projects section for details.
and for the command line you could use this :
<PhpStorm> <path_to_the_project folder>
See Open files from the command line for more information.
Site is hosted in cPanel, i want to bring down to local for development work, and i am not getting proper picture how to do this, please advise and the site is build using laravel.
You can download files through FTP account of your hosted website..
You can also zip files from file manager in cPanel and download it. After that, unzip it locally. Here are the steps for you:
Login into cPanel account.
Go to the File Manager.
Navigate to the folder where the files you want to compress are While holding down your Ctrl key, click on each file that you would like included in the compressed file.
Click the "Compress" button at the top right of the page
On the "Compress" page, choose which compression you would like to use (such as zip or tar), enter a name for the file, and then click "Compress File(s)". When the files have been compressed successfully, you'll see a success page that lists the compressed files
Compress the whole Laravel folder into .zip or .tar.gz and download it. Unzip the folder on your local development environment and make necessary changes on the configurations file (app.php, data.php, mail.php) to match your local configuration.
I've always used VS2010 to open a bunch of flat websites which live on my local disk (File -> Open -> Web site).
e.g Foobar website at:
c:\Projects\Foobar
This traditionally worked fine (whether or not VS2010 is the right tool for editing simple HTML files)
However, I've moved to a new PC and this simple idea of opening a flat website inside VS2010 is all screwed up.
It'll open any folder once but if I try and reopen the website it has thereafter decided that I want my website content in a subfolder. It spawns a subfolder at
c:\Projects\Foobar\Foobar
and is determined to use that for content (of course it's empty, and no, I don't want to adopt that folder structure).
Is there any way to force VS to use my plain old root folder website as it used to on my old machine?
Edit
I can, sort of, get to what I wanted by deleting both the foobar.sln file and the foobar/foobar folder and then reopening. But as soon as I then exit and try to reload the website VS complains:
Unable to open the Web site 'C:\Projects\foobar\foobar
The foobar.sln file is just a simple XML file with a path to every relevant project. Open the site in VS once, then close it and edit the .sln file manually (in Notepad or something similar). Look for the folder path C:\Projects\foobar\foobar and change it just C:\Projects\foobar.
I'm new to Aptana 3. I recently switched from using an FTP (Filezilla) and text editor just to speed the file editing process up a bit.
I'm dealing mainly with Wordpress sites on a shared Godaddy hosting account, and am having some trouble uploading the files I have edited via Aptana to my live site.
i.e. I've edited several lines in my "main.css" file. I save it in my "Project Explorer" window in Aptana, have my FTP connection all set up and working, and click the "Upload" icon. I refresh my browser and nothing has changed, and I can see the website is still pulling in the old css. I've also tried "synchronizing" my files and hitting the "Publish" button, but that doesn't work either?
I've also tried just editing the file in a new Remote Connection tab, but no joy either.
I've hunted all over for simple walkthrough for deployment or file sync guides for Aptana, and watched a few video tutorials but nothing has worked so far.
Hold Control+F5 for a few seconds in your browser. You probably are just running a cached version of the CSS in your browser. That should prune it.
I had the same problem. What I found I had to do was an initial synchronization, I know you mention that you did this but it may be that it didn't fully sync as its not always clear what is going on with the Aptana sync.
What I did:
Make sure your Project has a connection in it and that it points to the server location that you want to sync with
Select the Remote tab and right-click on a file within the chosen connection, choose File Transfer...
This will open the sync window and it will initiate a compare, this is where confusion set in for me, if the folder structure is not identical it will propose to create and delete lots of files. I found I was deselecting items to be safe but meant that it did not correctly sync. Make sure you are syncing from the same root level and then let it do a full sync, this seems to register or record a link between the local and remote files.
Run the sync. when it is complete you will now be able to upload individual files successfully from the Project tab using the upload icon (before a successful sync this will not work - even though it looks like it is doing an upload).
Hope this helps.
I am creating a clickonce installer using the deployment strategy of Install from the Web or network share, on one of my project. I am learning how to use click once installers. When i publish my project it gets succeeded. i gave the URL of my website that i had created through google so that anyone can install from that URL. After publish gets succeeded the URL should be launched automatically but it is not. Moreover. When i check my website and in it that page whose URL i had given, there is nothing there. No installer. Please help.
Right Click on Publishing Project
Click Properties
Click "Publish"
In "Publishing Folder Location" is anything set there?
Click the button with ellipsis (...) to the right of the combobox
Click "FTP Site" (not Remote site, as this needs FrontPage extensions)
Enter the Server information, Directory (that you have access to), keep it as passive mode, uncheck the Anonymous option and put in the valid FTP instructions.
Click Open, and Republish. All should work 100% with this.
If not, have a look in your wwwroot/ folder and find the application information (if it's there) and you will have to manually upload the files.
EDIT for comment:
The website that you are uploading to, does it have FTP access? Meaning a place that you would upload file to for display on the website, even like your html content? (index.html etc.)
If not, you will need to get these details from your website hosting provider and fill in the appropriate fields for the FTP upload.
It's a while since I did this, but I'm fairly sure that you have to upload the files manually.
The installer needs the location so it can build the web page etc. All the files should be in an output folder in your project.
EDIT: I've just checked and the output folder is the one you specify on the first step of the Publish Wizard. If you specify a local folder the files will be put there for you to FTP to your website later. You can also specify a remote address as and FTP or HTTP location (which I'd forgotten when I posted my original answer). You'll have to enter the user name and password for connecting to the remote location later in the process.
Are you using Visual Studio 2008? The default behaviour of deploying a "publish.htm" page has changed.
Bring up your project's properties and switch to the "Publish" tab. Click the "Options" button and switch to the "Deployment" section of the dialog. You'll see by default that the "Deployment web page" TextBox is empty. You'll need to give that a value and also check the "Automatically generate deployment web page after every publish" CheckBox.
I've taken to filling that in with "default.htm" so that whichever folder you deploy your app into will have the ClickOnce publish page as its default page.