I have a site that fronted use next.js and backend use laravel api with docker.
This site running with ngnix. I want to use one laravel blade page with router wep.php for test. Not working any route in route/wep.php.
How can get the blade page with wep.php?
I couldn't find any information on the internet.
Can you help me?
Related
I am building a web application (crowdfunding site). I have started building the REST backend using ruby on rails.
I plan on deploying the backend to heroku.
I then plan on developing the front-end using some js framework like Backbone or Angular, html, and css.
My question is, can I host the front-end using a product like Parse? Such that the front-end has access to the exposed api endpoints hosted on heroku.
If not, what are my front-end hosting alternatives?
Will I need to reconsider using heroku for the API/backend?
This is my first time building a web application, so I would appreciate details and other resources. Thanks!
I have a Rails app running on e.g. example.com.
Any request is processed by Rails router.
There is public API on e.g. example.com/rest/2.0/session.
API is done on PHP and is unrelated to main app.
Is it possible to proxy requests to API bypassing Rails application?
Sorry in advance, no clues found in internet.
Configuring directories in apache.
You can have your rails application in /var/www/ruby/myapp and PHP api code in /var/www/php/.
I have a webapp running as an Azure website on http://www.example.com
I have controllers for www.example.com/signup and www.example.com/signin - all other stuff is put on subdomains, like username.example.com.
My question: is it possible to have another (azure) website running on http://www.example.com? E.g. with all the marketing pages etc.
Ideally I would like to give access to that second website to an external webdeveloper so that I don't have to worry that the webdeveloper have access to my main app.
Additional question: would that second website have to be asp.net? Could it be PHP? (e.g. a Wordpress site)
You can develop child projects within Azure Websites check here : A single web project hosting both the web pages and API
One web project for the web pages, and another for the API, deployed to different websites on different servers
One web project for the web pages, and another for the API that is deployed to the same servers as an IIS application (/Services). http://blogs.msdn.com/b/tomholl/archive/2014/09/22/deploying-multiple-virtual-directories-to-a-single-azure-website.aspx, not sure if it can use another platform.
i don't know this is the right way to explain this but here is the scenario.
i created a portal site[Asp net MVC4] and deployed on windows azure as cloud service say abc.com now business guy comes and says i need to write the blog to promote it . So i hosted a word press or any blog engine site for him say blog.abc.com.
problem comes here , how can i make this abc.com/blog/Some blog starts here ?
By custom domain and redirection, i can't achieve this [Not Sure].
the only way i see is. Write a REST Service to talk with blog database ,Create a Area in project 'Blog' and Display the Content.
you can host the blog in a subdirectory abc.com/blog/ if windows azure allows php to be installed. it just requires additional configuration in your web.config file to stop your application from trying to process requests to /blog/
I would like to have multiple RoR applications that can communicate with each other (databases, method calls, ...).
Example of what I would like:
a main application running on a URL http:// www.< application_name >.com
a sub-application 1 running on a URL http:// www.< application1_name >.< application_name >.com
a sub-application 2 running on a URL http:// www.< application2_name >.< application_name >.com
each with own databases.
How can I configure my applications? Where can I find a tutorial for my needs?
No Problem. In your case you will have 3 distinct Rails applications. You will setup your Webserver to send requests based on host accessed to one of the three applications. This is standard web server configuration. You'll need to read Apache or Nginx configuration on how to route request to the right rails application.
EDIT:
http://articles.slicehost.com/2009/3/11/ubuntu-intrepid-nginx-rails-and-mongrels
Not sure what you are going to use as your Web Server (Apache or Nginx or something else) or what you are going use as your application container (mongrel/passenger/thin etc) but this article above should help.
You might take a look at the eco_apps gem - https://github.com/idapted/eco_apps. I heard the developers give a talk about it at Rails Conf '10. Fascinating stuff, though I haven't had a chance to use it yet.