Update some html when ruby on rails is live - html

I have a Ruby on Rails website online. I tried changing the HTML, but saw no change when I uploaded the file via FTP.
I've even checked by making a simple change such as adding an HTML heading:
<h1>omais</h1>
I checked the online page which I edited and looked at the source code in the browser, and confirmed that I was on the correct page.
Is there some kind of command to inform the project that there are changes that has been made in the HTML file?
I am new to Rails but good in PHP.
Any help, Thanks

Apart of my comment, I am adding answer here also, so that other programmers can get help from your question.
You need to restart your rails server or just try to start app server, which will leads to rails server restart. If still you face the issue, try to clear your browser's cache.

Related

Delete wordpress on website and replace it with django - Setting up website entirely with django

I own a webpage which has wordpress.org preinstalled.
I have never done anything with it, but now it's about time. As I'm learning django, I would like to build my webpage with it instead of using the preinstalled wordpress.
How do I go about it? I haven't found anything related to this topic searching the internet.
This is the webpage with preinstalled wordpress I'm talking about.
I did the same just 9 months ago ... you can literally start from scratch as you seem to not have too much on the wordpress page its not a big damage. Next steps: you can check if the theme you used is also available for html5 so it looks familiar and you need to choose a provider who hosts django unless you dont want to setup the server yourself. Any questions ... just ask.

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.

Websites running very slow

we have a vserver problem that started all of the sudden yesterday.
If you go to this Website:
http://www.rightsfreeradio.de
You will notice that it needs ages to load.
This happends to all websites we have running on the vserver.
I was asking the Provider if there is any problem with their connections, but they dont have any problems.
If I log in to FTP its running fast as usual
only all web based applications and websites are running very slow.
Running "top" shows that mysql takes like 70%+ on the CPU, but Iam not sure if thats normal or not.
Do you have any ideas what could be wrong with the server?
What programming standards are you using. I opened link but did not open it.
Either there may issue with server. Or another cas is:
Check any js, css file taking time to load
Put unncessary imported files at the end of body tag
On load are you calling any function which may be prone to deadlock getting blocked?
Make sure to use HTML Validator to correct your HTML etc.
Also make sure all scripts are working fine or to debug. Take off all the script files imported and go from there.
Link doesn't open at all.
first, I suggest you to restart all service on your server and then:
check mysql error log as you say above
tail -f /var/log/mysql.log
and then, check your databases
mysqlcheck -Aor
and you can follow this link bellow
Show top five CPU consuming processes with ps

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?

CakePHP without mod_rewrite problems

I've developed a website using CakePHP and I am now trying to host it on the live server. I couln't get much help from the hosting service, but I think they do not allow mod_rewrite (I get 500 server error whenever I try to turn it on).
So, I looked into using CakePHP without mod_rewrite. Now I can at least see the website, but I'm getting tons of errors, in particular:
The css and js files are not found.
There seems to be problems with the database, although it might be related to the problem above, I can't tell for sure.
The live website can be seen at new.enviro.lu.
The working website can be seen at enviro.webforall.be
Can anybody point me into the right direction to solve these problems?
I'm using CakePHP 1.3.4.
The problem with the CSS and JavaScript pages not showing is that you have Apache's DocumentRoot point to the wrong directory. The DocumentRoot should be /app/webroot, but you have it set to Cake's root directory. You can see that the paths work if you access http://new.enviro.lu/app/webroot/.
The database error on the page is:
Error: Database table content_pages for model ContentPage was not found.
This suggests that either the content_pages table has not been created as the error message says or the database configuration points at a wrong database.
Try contacting your hosting provider and ask them to turn mod_rewrite on for your account, or ask them how you can do it. CakePhp will not work without it.