Live edit of language file in laravel - laravel

I need to change one string in translation file over front-end part of the site. Is there a method that can change that(because language files are not part of the database)

You can edit the file in the server (by SSH or uploading with FTP) or you can edit locally, push with Git and pull in the server.

Related

Uploading files to a Heroku website connected to GitHub?

I'm making a pretty simple website and I have a feature that allows users to upload an image for their profile which is then saved in an uploads directory.
It seems to work fine, however when I push a new local version of the site out I lose all the uploaded files. I'm not exactly sure where Heroku stores them, is there a way I can push those to GitHub or another solution?
It seems like you want data from heroku app to your repository, if i understood your question correctly. Then try this:
https://blog.heroku.com/push_and_pull_databases_to_and_from_heroku
Heroku's filesystem is ephemeral. If you want to store user uploaded content, you need to use something like S3 to store the files.

Jomsocial transfer from one server to another

I am trying to transfer my website with jomsocial from one server to another.
www.iremember.gr
Previous server steps:
Backup all the files from public_html folder.
Backup the DB from php my admin.
New server steps:
Install joomla, entered the prefix in DB of the previous DB prefix.
Deleted all files from public html and extract the backup from the previous server.
Export the DB from the previous server, to the new one.
Changed the configuration.php file with the new user/dbname/password.
Now when i try to enter the new server at this IP address
93.174.121.23/~niremco/
and i login ok.
It loads the main page
but when i try to enter a profile i get a 404 Error.
Although when i try to see the profile
http://93.174.121.23/~niremco/index.php?option=com_community&view=profile&userid=109
i can see it.
But not from the correct link that i had in the previous server
http://93.174.121.23/~niremco/team-iremember/profile
Any idea why this happens?
You probably haven't copied the .htaccess file from the old website, you will need to copy it from the old Joomla website to the new one. This typically happens because the .htaccess file is considered to be a hidden file and as such does not get copied over automatically.
First of all, installing a clean Joomla first is totally unnecessary. As for why you are getting the 404 error pages, this is because you probably have URL rewrite enabled in global configuration, while there is not a proper .htaccess file sitting in your new server.
With proper I mean either no .htaccess at all, or one that was setup for your old hosting. I rather tend to think the second.
To test that your moved correctly your site, disable url rewrite from global configuration.
If you would want to test with url rewrites enabled, then I would suggest to edit the hosts file in your computer and point your domain to the ip address of the new server.
Google Search: How to edit my hosts file - choose the resource for your OS.

Do I need access to the server?

I'm new to magento and was wondering a very basic thing, I saw that in order to change some things on the web I have directories such as app/design/frontend/..... so my question is, is there a way to access this files from magento admin panel or I necessarily need to check them from the server?
You can not access this folder in admin panel.You need to go to the mentioned file location and change there whatever you want.
If your application is on remote server you need ftp access.
app/design/frontend/base/default/template/onestepcheckout
you can also copy the file to your theme and make changes there.
app/design/frontend/default/yourtheme/template/onestepcheckout
You can only edit CMS content from the admin panel.
Modifying templates/css requires access to the file system (ftp/ssh).
i don't this there's any why that help you to edit magento files without login to FTP / SFTP. so i think try to get FTP / SFTP details

How to remove uppercase URL's with octopress Heroku blog?

I am converting my blog to octopress/jekyll hosted on Heroku.
It all works well locally however when loaded up to Heroku I get capitalised URL's that seem to persist across updates and rebuilds of the remote repository.
The posts at locations like mydomain/category/postname contain html redirection files to help with the change in url structure between the previous wordpress domain/category/postname to the default octopress style domain/yyyy/mm/dd/postname. These are created using the Alias Generator plugin from tsmango
If I type http://www.williampickup.org/Ceramics/john-dermer into a browser the redirect works, while the lowercase version doesn't. The uppper case directory names for categories were an artefact of the original script I used to create the Alias yaml entries in my blog posts. I have fixed that locally however I can't seem to upload the correct lowercase directory structure to Heroku.
Eventually I noticed that the directory names were being capitalised when I committed the changes to my git repository.
The solution turned out to be to change the git config setting so that ignorecase = true.

SFTP Login Success - 404 Error In Browser

This is my first time working with SFTP. I'm used to using a cPanel with a hosting company (like JustHost or GoDaddy, etc.).
I'm able to log in to my SFTP server through FileZilla and I'm able to upload files onto the server but when I go to visit the page on my web browser, it gives me a 404 error. For example, let's say my IP address for the server is:
123.45.67.89
I have the logins and I use them in FileZilla and put files in. And then I want to navigate to a file (in this case I'll use the phpMyAdmin directory I've created since that's what I'm trying). In the browser I write:
123.45.67.89/phpMyAdmin/setup/
This directory exists and has an index.php file in it but when I try to go to it, the browser gives me a 404 error. Am I missing a step here? Do I need to somehow work the login credentials into the URL? I've tried other paths too and they don't work either.
Thanks for your help!
EDIT
I just realized that with SFTP, the browser uses the information that's in the /var/www/html/ folder to display. I can navigate to those directories by just simply typing the directory name in. I suppose my question now is how do I get to the root directory in my web browser. Using just the 123.45.67.89/ defaults to the /var/www/html/ folder...
Which web server do you use? If it's Apache you should learn about apache virtual hosts and modify the apache configuration file (usually on /etc/apache2).
See here for more details.

Resources