Updating web content locally? - html

I'm really new to owning a website, I just bought mine today!
But, I've found found pretty fast that updating files can be a nuance.
Make a change locally, save, re-upload.
I really prefer to code locally, as the IDE is much better. Else I'd have no problem coding with the hosts "notepad".
So, my question is, is there software of any kind that will sync your local files, to those that are hosted on the web host? Or is this dependent on the web host?

i use winscp, i tell it to upload changed files, so once logged in, any changes i make locally are automatically updated. there are other ftp clients that do this also.

you can use a file versioning system like svn to download and update files, push new versions. But that isn't really any different than what you are doing now, except that svn offers ability to keep track of previous versions and keep people from overwriting each other's work. I think maybe you might mean more like "when I open and edit file.txt in my editor and save, it is automatically updated on the server" ? If that is the case, there are a lot of editors that will let you open a file remotely and when you save it, it saves it remotely. The one I personally use is html-kit

Related

How to setup Git with Mediawiki?

I recently made my own personal MediaWiki and I would like it to be available on different computers. I set it up with XAMPP, so currently, what I did was make two repositories:
one for xampp\htdocs\(my-wiki)
one for xampp\mysql\data\(my-sql-folder)
Then I cloned those repositories to the same folders on another computer. However, when I go to localhost(my-wiki) on that computer, I get the error "Sorry! This site is experiencing technical difficulties. (Cannot access the database)."
Whenever I make changes to the Wiki, xampp\htdocs(my-wiki) does not change at all, while xampp\mysql\data(my-sql-folder) frequently shows edits. What am I doing wrong?
Edit: After looking at the internal error data, it appears that none of the tables in the wiki exist anymore (Table xxx doesn't exist in engine). I'm unsure of why this would be!
There are two things that change when you use a wiki: the uploads directory and the database, so for some some sort of decentralized wiki you need to replicate those. Uploads are simple (you could use git, or some shared central storage like NFS, or some decentralized file store - Wikipedia for example uses Swift). As for the database, there are a few experimental tools to use git as a storage engine (e.g. git-mediawiki), but nothing I would rely on. If your computers run all the time, you can use database replication, but that's not a beginner-level setup. In practice you'll probably be best off just using database dumps. Or buy a server on the internet (a decent VPS is pretty cheap these days) and use that as the wiki's DB backend so you can reach it from all your machines. (Or I guess you can just put your whole wiki on the internet at that point.)
Figured it out. I was missing the files ib_logfile0, ib_logfile1, and ibdata1 from the xampp/mysql/data folder. This, however, makes my Git setup even more annoying. If anybody has any suggestions for a better way to setup my Wiki and make it available across different computers, it'd be much appreciated! Thanks

How to refresh remote file in PhpDesigner

Usually I am working alone, but now I have a new colleague, so we need to work together.
Unfortunately we suffer the lack of git, so because of certain circumstance we need to work directly on FTP.
I am using Netbeans, but I recommended to her the PhpDesigner, because I know, it is working with files directly on the remote server, not like Netbeans what is make a local copy of the file.
When I edit a file, I tell it to her, so she close the file, and open it again, and my changes are appears.
I there any way to not close the file, just "refresh" it (download from server)?
No, you can't in phpDesigner, I've tried many ways but is not possible. You can do it in Npp.

PhpStorm: loading external files locks up program

I have a problem using PhpStorm:
All of my sites are hosted externally, and I pull them into my local environment PhpStorm project. When I need to pull in a new project (or sync an old one), it locks up PhpStorm during this process, which could be long. If I want to work on a different PhpStorm project in the meantime, I can't do so via PhpStorm.
Does anyone know how to get around this? If it helps, I'm using Microsoft Windows.
There's an open feature request from March 2010 to solve this: https://youtrack.jetbrains.com/issue/WI-1307
For now, you may want to consider one of these workarounds:
Exclude all folders to prevent an initial download. Go back into the settings, remove the exclusions, and then do a background sync.
Creating the project without defining a remote server. Go into the project settings, add the server, and configure the folders you'd like to sync. Then perform a background sync.
Actually I opened up a case with jetBrains about that, the thing is that PhpStorm uses all the CPU at almost 100% until it finish indexing, so this is a big problem with older computers or computers with small resources

Apache directory listing with upload button and search textbox

So i have a server, with apache 2 - running a directory browser(i think it's called. Where i can access my files), as my own dropbox server. However it does how some limitations, when i'm at school for instance, and i wish to upload a project, i gotta send it with email to myself to upload it, i cant delete or anything. So i wanted to add a delete button(least important), i wanted to add a search function since the files are beginning to stack up. I would also like an upload button. I didn't really understand apache, i followed a tutorial for the server. I have a very basic html knowledge, and i have tried and tried to create it myself, and i have been searching for a loooong time(trust me).
So could anyone post a solution/tutorial/tip or anything useful? Please try to help me instead of answering with rude answers. I'm 15 and hoping to get these features up and running as soon as possible. Thanks:)
Just use the open source FTP FileZilla software https://filezilla-project.org/ instead?

Why is Eclipse deleting my files and putting them in 'Local History'!

Several times now I've had Eclipse delete files for me seemingly randomly - then they appear under the 'Local History' option.
What is going on! I'm definitely not just deleting things by mistake.
Most recently it deleted my template files under html-template which are quite important!
I have an AIR project and a web project that references the src directory inside the AIR project. Usually I close one project while working on the other.
FYI: Currently my backup solution is Windows Home Server which means I have to go home to find a file if its lost in some other fashion and not in history. Yes I do plan to rectify that!
Under Local History you can find the previous versions of your files, after you modified it.
Didn't you set this folder as the output folder for compiling? Then eclipse could clear the files during build.
I suspect it is an external application that is deleting or moving your files. Eclipse's local history simply keeps of copy of your files for quick reverting later.
I suggest trying using a different IDE for a while like NetBeans, and see if the files are still being deleted. Eclipse probably isn't the suspect, as those files would be in local history even if they were not deleted.
I am trying to fix an issue like this myself, I find that when I look into files that have been deleted with another text editor like GEdit, they look like they have been corrupted. I hadn't previously noticed that eclipse kept them in local history, thank you for that. I had been using gitHub for backups before and restoring from that.
If I find that switching to another IDE fixes it, or any other info, I will update this post.