PhpStorm SFTP won't write to remote host (AWS EC2) - save

I was able to connect SFTP to my AWS EC2 instance, and I can see all the files and browse through them, open them up in PhpStorm etc..., but when I make a change and save any file in PhpStorm, then refresh the page on my browser the change doesn't show up.
It works if I physically do it in VIM, but PhpStorm SFTP is not writing my changes to the remote host
Is there an extra configuration step I need to do to get it to write to the host as soon as a file changes?
One thing I did notice - If I choose the menu options Tools | Deployment the options to upload are greyed out.
Any help is greatly appreciated.

Ok so the answer is that the files were under a different ownership.
So I had to go to the root and execute:
$ sudo chown -R ec2-user:ec2-user *
And that worked.

Related

Sublime Text 3 and Rails: manage an app on a remote server

I'm new to Sublime Text and recently discovered the wonderful SFTP plugin on Sublime Text 3, which lets you work with a local folder and sync it to a remote server directory.
I have some questions:
is it possible to sync the folder automatically once files are created or deleted, either locally or remotely, instead of clicking everytime on Sync Local -> Remote or viceversa?
is it possible to launch rails or rake commands from the Sublime console to the remote server and after that sync the local folder contents automatically?
My local machine runs Windows 10 whereas my remote server is a Ubuntu 16.04.
Thanks in advance
Is it possible to sync the folder automatically once files are created or deleted, either locally or remotely, instead of clicking everytime on Sync Local -> Remote or viceversa?
Yes, but only for the files changed locally. Check upload_on_save.
Is it possible to launch rails or rake commands from the Sublime console to the remote server and after that sync the local folder contents automatically?
You cannot run such commands using a FTP client. You will need SSH access to the server for that.
A work around would be to set up a listener on your server that will trigger rails commands when files are changed.

How to remove Server list of Docker(Project Interpreter) on Pycharm

server list is not available but that still remainding.
how to remove 'server list'?
[]
For mac users:
Open the terminal and type
sudo nano
/Users/$(whoami)/Library/Preferences/PyCharm2016.3/options/remote-servers.xml
Probably you need to modify the paths pycharm version to your current one.
Remove the remote server you don't need anymore, save changes and restart pycharm
Make sure that the Docker integration plugin is enabled first. Then edit the Docker server list by going to
Preferences > Build, Execution, Deployment > Docker

Install wampserver locally but store files on LAN?

I searched and found a lot of questions relating to sharing my site on the LAN or accessing a WAMP on the lan. I want to be clear:
I use WAMPserver 2.5 for local development so I want it on my Windows PC and I'm not sharing it with anyone. But... I want the actual files to be stored on my \SERVER share for purposes of backup. I can't seem to figure out how to tell WAMPserver to do that. By default, it installs in C:\wamp and puts a www folder in that directory and looks for everything there.
Click the WAMP icon in the task bar, then open the httpd.conf file under the Apache directory. Find the DocumentRoot setting, which is currently c:\wamp\www, and change it to your desired directory. Then, a few lines further down, do the same with your Directory setting. Save the file, and restart the WAMP server.

jenkins URL with computer name does not open page

I know this question is asked before but I could not find any right solution for that
I have install jenkins on my windows 7 as windows service, it works fine with default URL localhost:8080, but when I set //mycomputerName:8080 in configuration system- jenkins location and then save it and restarted jenkins and enter //mycomputerName:8080 in browser address jenking will not open. I have done the same installation on my laptop windows 7 without any problem, but on my desktop I have installed, uninstalled several times with the same problem.
I just want to give my solution
Go to Jenkins Home Directory ( I have mine in C:\Jenkins)
Edit jenkins.xml
Add this --prefix=/jenkins to the end of the argument as show below and restart the jenkins service ALL worked OK for me !
Example :
<arguments>-Xrs-Xmx256mDhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=8080 --prefix=/jenkins</arguments>
Open Url http://localhost:8080/jenkins this should bring up the home page of jenkins
As I said in my question above many people have asked this question and had the same problem but all answer have been something from jenkins documentation and actually not solution.
so finally I found the problem and write it here probably for some people with the same problem
first I uninstalled jenkins removed all files, folder and everything related to jenking also from windows registry and installed jenking but did not work.
reinstalled windows (upgrade) and installed jenking again but did not work.
next I clean reinstalled windows and installed jenkins and in this case jenkins works as I expected but I do not know what was wrong with the windows.
Add to Vamshi's answer. Instead of the config in the
C:\Users\XXXX\AppData\Local\Jenkins\.jenkins\config.xml (you won't find <argument> in this file)
add the --prefix=\jenkins to the <argument> in jenkins.xml
C:\Program Files\Jenkins and restart the service.

Console Utility that can remote connect to other systems and issue commands

Frequenlty my work involves to VNC to a remote system and work on it. SInce i run command line apps on this remote system most of the time, i was wondering if there's an alternative software to command prompt which i could install on my local machine. Using this i should be able to create a session with the remote system and from then on all commands issued in command prompt should run in remote system.
localHost>dir --> should list the directory contents in remotehost active directory
localhost>app.exe should run app.exe in remote host and display its contents in localhost command prompt
I browsed a little and read about cmdlets in powershell. But it looks like i need to write a cmdlet for each app in the path (dir, mkdir, app.exe in the path). Correct me if am wrong. Once session is established, i simply need the commands invoked in local host to be run in the remote host and return the console output to local host. Please let me know if powershell + cmdlets are the only way
THanks
Just use PowerShell Remoting if it can be set up (requires a little preparation).
I'm not quite sure why you think of writing own cmdlets for stuff that's already there. dir is an alias to Get-ChildItem which does return the items in the current path (and—depending on options—some other stuff as well). And since PowerShell is a shell it has no problems running external programs too.
SSH is what you're looking for. Cygwin has a SSH server and client.
Unix people do this all the time with SSH. You can install the sshd server on your remote machine through Cygwin, then use PuTTY to connect to it.
As a bonus, PuTTY does not use the clunky Windows cmd.exe program; it's got a much nicer terminal of its own.
You could maybe even run PowerShell on the remote end, so you don't have to learn bash.
Depending upon on how you actuall access the machines PSExec may be an alternative that wont require you to install anything on the remote system.

Resources