I installed Wordpress on my server and am testing modes to automatically deploy.
The question is: When a git pull, the files in the folder uploads will be kept on the server?
The question is: When a git pull, the files in the folder uploads will be kept on the server?
It seems the /uploads/ folder is not under version control so yes it will be kept on the server.
https://github.com/WordPress/WordPress/tree/master/wp-content
Related
Can someone help me... When I run firebase deploy it's deploying my static folder to hosting, but when I open website url in browser and check source files, there all my files with configs and components, tokens for DB as well. It is not safe at all... everybody can view all source files. How I can deploy so that nobody can view config files etc?
The Firebase CLI will deploy everything you put in the "public" folder by default. Once that folder is published, everything is, as you observed, public information.
If you don't want a file to be deployed, you should either remove it from the public folder, or tell the CLI to ignore that file for deployment using the ignore configuration in firebase.json.
I'm having troubles moving my current website to a new host. The website is hosted on a www.website.org/wordpress and I need to move the entire website to a new server to which I have access via ssh and ftp.
The plan is the usual, backup all files and the database and then move the files to the new server, where the website will be hosted in a new address. But the tutorials that I've found use cPanel or other management tools that I don't think that I have access to.
The other method is to try and copy every file from my current webhost using ftp, but I don't know how to connect to the website and copy all files.
Somehow I'm having problems downloading the files from my website to my computer to move them to the new server.
Is there a simple step that I'm missing on how to log into the website to copy the file structure from wordpress?
Thanks in advance for any responses.
Through ssh you should try the scp command.
You can read more in this explicative answer How to copy a folder from remote to local using scp?.
EDIT
In your case would be:
scp -r user#sourcewebsite.com:/path/to/wp user#destinationwebsite.com:/home/user/Desktop/
Let's check that source and destination folder paths actually exist.
I want to set up symfony3 on cloudways. Path for application folder is /home/master/applications/[appName]. pwd in this dir: conf logs private_html public_html ssl tmp.
As this link says I should install symfony application in public_html. However, I know that public_html is the same as web. So an application should not live in that folder. So, I think to install folder directly in /home/master/applications/[appName] and change 'web' directory to public_html. Is that right? Do not other existing folders (conf, logs) interfere symfony app?
Update: I am going to setup a git repo for symfony app on server. So if symfony should be installed in public_html/../ then all other files also will be tracked by git. I do not think that ssl should be tracked. Sure, I can add it to gitignore, but anyway.
I am from cloudways. Let me tell you the whole process, Cloudways is a managed hosting so there are some restrictions. You can't install symfony in: /home/master/applications/[appName]. You need to move in Public_html which is not a typical public directory. Install Symfony in this folder and don't worry your other files are not exposed beside the web folder. Every file is securely hidden and the whole process is also tested by Symfony officials.
After installing symfony in public_html folder, you can point out the URL to web directory:
Again nobody will have access to your files they are protected.
You can add .gitignore file to avoid unusual files to be tracked. I created some tutorials you can take guidance from them. here is the URL: https://www.cloudways.com/blog/php/symfony/.
The web directory is the directory Symfony is served out of via the frontend controller app.php (or app_{env}.php for non-prod). This is separate in philosophy from where your web server serves from (apache, nginx, etc). The directory structure ultimately doesn't matter much in either case so long as you point your web server to the correct directory where your frontend controller lives.
This is a good starting point: http://symfony.com/doc/current/setup/web_server_configuration.html
I have a issue with a ASP.NET nopCommerece Plugin that seems to be cached on the server.
I have cleared the nopCommerce cache and restated the application but it didn't help
One of the normal steps is to clear out \Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files but since this is a Azure Web Site, I only have access via FTP and I don't have access to that directory.
How do I go about clearing the Temp Files.
when you publish the website on to azure, by right clicking and choosing publish, there should be a option under setting saying: Remove additional files at destination. Check it and publish.
I managed to do this by creating a temporary file in the bin folder of my website.
This casuses the temporary hash file to change in the temp folder and then ASP.Net rebuilds everything.
See here for more details about the hash file and its relation to rebuilding.
Remove Additional files didn't fix my problem as it only removes files in webroot not the temporary asp.net files. As far as I can see with Azure you have no access directly to the temporary asp.net files
On many sites we will have an option to download setup files from the site directly. How to do this. I need to add both Zip files and setup file to my website so that when user clicks on it it should be downloaded for installation
Upload the .msi and the .zip to the server and link to them. This should be very simple unless I'm missing something.