Installation of Laravel 4 on remote server

Asked

Viewed 414 times

2

How to install Laravel 4 on a remote server via Composer?

I searched extensively on the internet and found no convincing response that was in line with best practices or the philosophy of the framework.

  • Connecting to the server via SSH and installing a project with L4 via command line is a possibility?

  • 1

    Can Downbeat be more specific in what it means for you to install the Scalable on a remote server? You refer to the process of uploading an application made on your machine to the server?

  • 1

    The explanations and new details you are providing in the gmsantos reply comments should be added to the question, as explained in the above suspension message. After [Edit] the question, it will end up in an analysis queue for reopening, where you can vote for it.

1 answer

0

In my company I use a git repository that from a hook post-receive fire a command composer install in the code that was made the deploy.

It’s quite simple, but requires a certain knowledge of git and operating systems.


If you want to follow the framework philosophy, read the documentationen of Laravel you will find valuable information.

For the management of the environments Laravel has the Homesteaden, that is nothing more than a Vagrant VM for you to develop your application in a configuration that Laravel will run smoothly.

For the part of the deploy, Laravel relies on the Forge, an environment that configures Paas that can host your app. We have a free course on Laracasten which clearly shows how to use this service.

Now, if you use a shared server or you want to manage your Paas at hand, you will have to create your workflow to meet your needs, which can be from simple to very specific.

Recommended reading:

  • Although you bring up some interesting topics, you did not answer the question directly

  • @Gustavonunes the simple and direct answer is: access the remote server (via ssh or any other method) and run composer create-project laravel/laravel. But I believe that was not the doubt of the OP. Later I can review the question but I do not see this as a reason to downvote.

  • The problem is that if I run Composer create-project Laravel/Aravel via ssh it will install the public folder and the rest of the directories of the framework, which does not seem very appropriate, Isn’t it? I would like to know how to leave the public folder of the Laravel in my Root Ocument and the rest in a level above.

  • gmsantos would like to thank you for your commitment to the answer. Thanks!

  • @downbeat is shared server?

  • I have a kinghost resale. I believe so.

  • @Downbeat found this post in the Brazilian Standard community in g+. It seems that the Kinghost is not so flexible for app hosting in the Standard. To be more clear on your question, I think it’s important edit your question including more information (Example you use kinghost, want to do delpoy, etc.). This makes it easier for a person who can respond not to need to hunt for comments.

  • Let’s do it short and thick. I want to put the public folder of the Laravel in my Document root and the rest on a level above. how do I?

Show 3 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.