running apache and rails on an ubuntu droplet - javascript

at first i installed apache, and i built up some sites.
Then later I tried to install rails according to this tutorial, since it's made by my hosting company.
I originally wanted to install rails in a sub-directory, so that most of the pages would be served up by apache and I could just build up some special apps with rails.
At this point I've corrupted the apache pages which heretofore were working just fine.
Should I just uninstall everything and start over?
But, what is the issue, is this how rails is supposed to work? Is it hard to make it compatible with apache? Can a server run only rails, would that be easier to manage?
I also had some javascript templates running off that apache server in the beginning.
Are there some particular log files I can investigate to discern what's at fault? Where are they located?

I can't help by providing a decent tutorial on rails + apache but I can help on nginx + rails + zero downtime.
Typically the webserver apache, nginx serves as a proxy webserver. They send the request from the user through a unix domain socket to the rails application running as a separate process.
I've written a detailed tutorial on setting up a deployment server from scratch.
Setup a vps
Securing vps + nginx
Deploying the rails application
Hope it helps !

Related

Apache site application authenticate to IIS Laserfiche CMIS Gateway application

Not even sure how to explain this correctly.
We have a custom ERP application written in PHP/Javascript running in Apache, we also have a Laserfiche Server running a CMIS gateway in IIS. We need to be able pass the authentication from the ERP application running in Apache to The IIS Laserfiche CMIS. Can someone explain how this might work?

what does shipping to a server means? AngularJs

what does shipping to a server means?
Does it means you need to upload on the server the necessary files?
I have the dist folder, package.json, server.js. Do I need to upload it all in my heroku server so that my app will run?
thank you very much. My apologies for being so noob.
Shipping to a server means that you deploy your application on a server where your application will run. This means that all your files which you made which your server will serve are transported to this server.
This server to which you ship your application to is usually a paid service where you pay a company a fee for certain facilities. You can also deploy your own server but this can be a lot of work if you are not familiar with servers.

Ember - Force https with heroku

I've made a ember app deployed on heroku. Heroku provides me an ssl certificat so https is working on my website.
I want to force visitors to uses https. I've found some answer telling to do-it in a client side, but since the client can modify JS he will be able to pass-by the force https.
I'm thinking about doing it in a beforeModel of the ember app.
What's the best approach ?
Many thanks
So guys,
I was able to force HTTPS by adding a static.json in my root folder of the app.
And in this static.json just add
{
"https_only": true
}
commit, push to heroku and that's it !

How to i put Node.js on my hosting website

I'm a little confused on how node.js works on web hosting servers.
Now i understand how it works when i download node.js on my computer, i run files and stuff and the node.js files are on my computer.
What i dont understand is how i run node.js on my web hosting server.
If node.js is a downloadable file, how do i get it to run on my server...
Do i just find the file on my computer that says node.js(or whatever its called) and upload that to my server?
Any clarification on how to run node.js on my server will help.
Thanks!
A server is just another computer somewhere running OS like Linux, Windows and others but at large scale. Now Node.js is automatically configured if your web hosting server is a shared server or free plan server like Heroku, an awesome web hosting company with great hosting plan.
You only get to install Node.js on a web hosting server if its a dedicated server like an Ubuntu Machine on Amazon or Digital Ocean. I don't think you should bother yourself much. If you want to move your Node.js app from localhost to a web server I encourage you to read heroku documentation or this scotch.io link. It is extremely simple.

Hosting HTML/CSS site on Visual Studio hosting service

I developed small Restful Web Service in VS2012 which should manipulate with database through entity framework.
Client side is HTML/CSS/JavaScript web site which shows data from database.
Is there any way to communicate by Ajax (to overcome cross domain issue) from my site to Restful Web Service without installing IIS, because I have really bad and slow computer and I need this only for quick test.
Can I host my web site somehow on service which Visual Studio uses to publish Services run by Visual Studio, or there is some other way how to test it quickly ?
If you're willing to use iisexpress Do this
Publish your website to any folder in your PC.
Then open a cmd window and run the following commands
cd "C:\Program Files\IIS Express"
on 64-bit OS,
cd "C:\Program Files (x86)\IIS Express"
Now the path would change to IIS Express>
Then run the following command
iisexpress /path:your\website\path\ /port:8030
This will start your website over the port 8030
IIS express will run as long as you don't close this cmd window. You can see iisexpress icon in the notification area also.
Easier way is to install IIS in your PC and host it with much better options.

Categories

Resources