Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

xingfucoder's avatar

Homestead Environment in Production

When you are using Homestead within your machine as an development environment you emulate a production environment but I have a question from a relative server newbie:

Imagine you need to deploy your application within a VPS or another Server machine in any of the Services available (DigitalOcean in example). You may need to install Nginx, NodeJS, Redis, Memcached, ... but within Homestead the configuration follows some convenctions. What would be the best way to emulate Homestead in a production environment with the same features and settings?

If we see the following documentation link:

http://laravel.com/docs/5.0/homestead#included-software

There, we can find the installed software but some of its configuration make me feel a bit lost. Where we can find some of the internal configuration of Homestead?

Thanks in advanced.

0 likes
4 replies
michaeldyrynda's avatar

Using Forge to deploy/configure your server is the easiest way.

You can also run the install scripts from laravel/settler which will handle it for you.

1 like
uxweb's avatar

@codeatbusiness You can use Ansible to provision your server with all the software you need in the way it needs to be (production/development).

Then to deploy your apps you can use Envoy (not Envoyer).

You can check Ansible in https://serversforhackers.com/video/ansible-installation-and-basics

I have created some ansible roles to provision a server for the company i work, here is the repo with the configuration:

https://github.com/uxweb/ghi-ansible

Its not all good, but most of it it is to start!

2 likes
xingfucoder's avatar

Many thanks both of you for your replies.

I will see your links.

Thanks again.

bashy's avatar

Yeah it's just installing the same versions... do php -v and install that version on your server (and repeat).

You can install from source or add a custom apt source and use that.

Please or to participate in this conversation.