How do I let my Client edit my webpage? - web

So, I have a client who needs a website. Although he would like to edit the webpage when I put it into the web. So I am wondering how would it be possible for just my client to edit the website, and not any other users. In HTML, CSS, JS of course!
Thanks, Albert

How competent is you client? Here's a few way I can see someone who is decently competent at computers editing a website (I've used them all):
SSH: If the site is running on a server with SSH, your client can directly SSH into the server and edit files. Not highly recommended but this is the "easiest" way (May be able to use their text editor via an SFTP plugin too to edit files on the server).
Git: Attach the web root to a git repository. This way the client can edit whatever they want on a local copy on their machine, test it and then deploy it to production or test by SSHing into the server and updating the repo.
No SSH? Use FTP is download the files, edit them on local machine and then upload new version to server.
All these options assumes the client can use the tools needed (SSH, Git or FTP) and knows webdev.

consider using some CMS, like WordPress or Drupal, so your client can edit almost anything on website without digging into git-flow or other technologies. I guess if he knew how to do it, he wouldn't ask. Another option is to create web site on a platform like Wix (or similar), but in this case customisation will be limited by platform

Related

Does Ghostscript absolutely need root access on Linux?

I made a program trying to see how many color pages are on an uploaded PDF file, using Ghostscript. Now, it worked perfectly on my local environment, but I can't put the site online, as the web hosting service I use tells me that any application that needs root access cannot be installed on the server. Is it the case with Ghostscript, and if so, is there any other way I can use it ?
I'm new to all this, and I know now I should have asked the web hosting service first thing, but I'd really like to not have to put my work in the bin over this !
No Ghostscript doesn't require root privileges and I've no idea why they would claim it does. Also, I would strongly urge you to review the AGPL license.

Using haxe to edit remote file?

I've searched in haxelib for a library to use for remotely editing a file on a server using ssh connection with haxe, or listing files in directory..
Has any one done this with haxe?
I want to build a desktop app to create a yaml editor that will change settings files of several servers using a frontend like haxe-ui.
Ok, there are probably a lot of ways you could do it, but I would suggest separating your concerns:
desktop app to create a yaml editor
Ok, that's a fine use case for Haxe / a programming language. Build an editor, check.
change settings files (located on) several servers
Ok, so you have options here. Either
Make the remote files appear as local files via some network file system, or
Copy the files locally, edit them , and copy them back, or
Roll your own network-enabled service that runs on each server, receives commands, and modifies the files.
Random aside: Given that these are settings files, you probably also want to restart some service after changes are made.
I'd say option 2 is the easiest. There are even many ways to do that:
Use scp to both bring the settings files to a local location, edit them locally, and then push them back. And if you setup SSH keys, you won't have to bother with passwords.
Netcat is another tool for pushing bytes (aka files) over the network. It's simpler than scp, but with no security measures.
Or, get creative / crazy, and say, "my settings files will all be stored in a git repo. The 'sync' process will be a push / pull setup."
There are simply lots of ways to get this done.

Is there a Grunt.js plugin for downloading via FTP?

There are so many plugins available which will help push to a webserver, but are there any that will download?
A Bit of Background
I'd like to automate the process of publishing my CMS-based website. The only issue is that our marketing people regularly blog and make content changes, so I'd like to first download the content files which have changed to my local development environment (.md files, which are not accessible from the web) before I push everything up to the staging server.
Does anything like this exist? I've searched NPM quite thoroughly, as well as this question which unfortunately didn't yield any results.
I did see a pretty robust cURL based plugin, however it doesn't support FTP authentication and since these files are not web-accessible directly, I'll need to leverage FTP.
A quick google search gave me this: https://www.npmjs.com/package/grunt-ftp

How do i get a direct download link for my file on Linux VPS

I have recently just got a subscription to a Linux VPS (Ubuntu)
I have logged into the VPS using FileZilla and uploaded my .png file to the VPS. But when i travel to the ip address in my web browser then i am unable to navigate to the directory for the file. I have apache2 running on the web server so when i navigate to the VPS using my browser it says this
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
Can someone please teach me on how to upload my .png file correctly so i can have a download link something similar to
http://myipaddress.com/home/files/mypicture.png
Would highly appreciate any knowledge applicable to my problem. If someone helps me solve the problem then i will happily tip them some cryptocurrency :)
You must put your public files in the directory published by the web server: the "DocumentRoot".
By example, it may be:
/var/www
The published files must also be readable by the Web Server process.
The Apache server on Debian runs with the "www-data" user/group, by default.

Is there a way to run Trac offline?

I'd like to download the Trac database so I can view its tickets offline. Is there anyway to achieve this? I.e. if I need to leave the office and bring my laptop with me, how can I bring the tickets with me without having to connect to the company network?
I know that Mylyn can download and sync tickets via it's trac connector but I'd like some stand-alone viewer.
See Simple Defects (SD).
I particularly like the "One-tweet install" idea.
I’m installing #SD (http://syncwith.us)
after reading about it on #StackOverflow
curl fsck.com/sd|perl;
export $PATH=~/sd/bin:$PATH; sd
Note that you can clone Trac (and other bugtrackers) in SD:
sd clone --from trac:https://trac.parrot.org/parrot
Seeing as you don't want to install a server, how about using RSS? IIRC, Trac let lets you get RSS feeds for each person, so you can have a feed of things assigned to you.
All you need do then is get a nice client that will download these tickets. You should be able to access a plaintext version without internet connection.
If that's not flexible enough, you could write a script on the server to publish a feed using the database directly.
And if RSS isn't for you (and your email is available offline), you could mail reports home. Trac also has this built in.
The default Trac installation uses a combination of SQLite to matintain all of the data. Attachements are stored on the file system.
In the folder containing the trac site, find \db\trac.db
This file can be viewed using the SQLite manager Firefox Addon
Happy hunting.
And if RSS or email isn't your notification of choice, there's a trac plugin that will let you receive task notifications on your Remember The Milk todo list.
See: http://1.www.rememberthemilk.com/forums/ideas/3580/?forum=ideas&hl=bs&topic=3580
If your objective is simply to view the tickets offline, how about
Run a report with all the tickets (or all those you're interested in).
Select either the comma-delimited or tab-delimited download link at the bottom of the page.
Import the downloaded file into Excel.
you could install it on a local machine
You can host the trac locally and set up the connectionstring point to your dowloaded database.
Sure. Install a web server locally, install trac, get it set up the same (or similar) way to the way it is on the live version and then script the server to publish db backups and write a local script to download those and restore them over your database.
It's not simple (installing Trac is a battle on its own from my experience of it) but every element is highly googleable =)
The trac client FatBug (http://fat-bug.com/) listed in
https://trac.edgewall.org/wiki/Clients
seems to do the exact what was described by the OP. I bumped into it after I just checked SD. SD seems trival on Linux, but heavy on Windows, it depends on Perl & CPAN.

Resources