How to publish a web site via (linux) script [closed] - html

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm just finished with a nice HTML5+ JQM web site on my Ubuntu laptop.
A make script converts server side code to static HTML, optimizes images and compresses JTML, JavaScript and CSS.
I ask what's the method you'd suggest to upload it to my public server (I have an ftp access, no ssh).
It should be a strong, repeatable and flexible (remove deleted files on server, upload only changed files, for example?) solution, which should be automated.

This is a generic solution which you need to modify for your needs
ls your changed files and save in an array(? or may be a list)
connect to FTP
upload changed content
disconnect
Best would be to set up a versioning system that will cover the files deleted, modified etc. Set up GIT and use GIT commands to get a list of changed files and use command line FTP to upload files.

Related

How do I load my html code to a website, without using word press? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
I built a website from scratch using html and other code. I bought a domain and hoasting with dreamhoasting. I want to load it on my website database but here is my problem:
I don't want to use wordpress, I just want to just run the code as I typed it. Do I need some sort of platform like wordpress to run the files or can I just stick it right in root file in my directory? And how does it work if I update my code? Do I just have to update the page in the root folder? And if anyone knows what is the root folder called? I was looking at my database files and there is one file with my websites name on it with a bunch of Word Press files. I was thinking of just deleting all the WP files in that file and uploading my code files. What do you all think?
yeah, You can put that code on your website. But if that website has no backend then it will be a static website. You won't be able to add any functionality easily.
You can use FileZilla and of course put it in your root directory. You don't need to use WordPress for this. If you want to know how to use FileZilla you can search it out on YouTube or even it is available on their site.

How to create a file that persists on the server with HTML5 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How can I create a file (let's say a markdown file) that persists on the server, strictly using HTML5? So no database or web server, just an static site server.
Your question is probably too broad but you need some type of program that serves a file but not "server software" such as Apache or nginx. Just like those web servers, they are written to listen to a port on the IP address of the computer attached to an internet connection somewhere. A program to do that is actually relatively easy to write but all the needs of a proper web server aren't such as needed security and the ability to interface to other programs.
But then that program is, in essence, a server and functions in the same manner so being able to serve a file without a server of some sort in some manner isn't possible.
Whole books are written about this and one of the best is, "Advanced Programming in the Unix Environment" by Stevens and "Unix Network Programming" also by Stevens.

For website development, is there an advantage to using Private vs Public repositories? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm completely new to Git, and one question I have that I cannot seem to find an answer to is this: when building a website is there any advantage to using private repositories vs public? I'm not referring to developing web-apps or other proprietary information so-to-speak, just basic web development. For example I would like to learn to use git (github) by updating our current website. Since source code is viewable to all, what advantages would be gained by using a private repository?
Thanks in advance!
If you are just developing in html/css/javascript(frontend), that is all viewable to the client. If you start to use server side scripting, (i.e PHP) you may have more sensitive data that you do not want public. You can also use git as a local repository and not have anything on github. That will handle source control and will all be kept local to the machine it is on. If you are developing on a server that other people use, they can also have access to edit that local repository.
Here is a good page for how to set up a local repository.

Minecraft server posting with html. Help, please [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to create a Minecraft 24/7 vanilla server for free, but I can't seem to get html to run Minecraft_Server.jar (the jar file), located at https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar. I dont know the startup class, but I do know the download link. The jar file was made to save to and read from files on a computer, and is normally started by a .command. Any help?
I shall address the issues you are facing one at a time.
HTML alone cannot run a Java program. HTML can run an applet; this is how the Minecraft Demo works.
The minecraft_server.jar is not a Java applet. Therefore you cannot run it online using HTML.
The unmodded minecraft_server.jar is not designed to run from a BAT file (I think you mean BAT rather then a .command file).
If you are trying to administrate a Minecraft server online take a look at some online consoles such as McMyAdmin or SpaceBukkit. You can also find online hosting that provides these console with a quick Google.

how to convert drupal site to html files [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a site in drupal7 and i want to create offline package.
so - anybody know how to convert the pages in my site to html files?
Seems like you want a local, static copy of your website ?
you can copy it with tools such as http://www.httrack.com/ . Be aware that any dynamic content will become static, so many features will probably not work.
If you want to create a backup of the site, I'd suggest you should use the Backup and Migrate module to backup the database and Backup Migrate Files module to backup the files.
This would be better to make a backup of your remote site to local system as well.
But, if you require to export the content as HTML pages, you should try the HTML Export module, which does exactly that.