Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Deploy CodeIgniter/Laravel Apps

I need to know which are my options when deploying codeigniter/laravel apps.

I develop locally all the time at my home and when i go to work i need some quick way to push all the changes to the server.

Application code needs to be updated, database schemas need to be migrated, and application servers must be restarted.

I do all of this manually wasting a lot of time and i need some automated way kinda like capistrano in Rails environment.

What are my options here ??

Update: I got my own server machine, and everything needs to work on an intranet environment without internet connection.

like image 727
Javier Cadiz Avatar asked Dec 06 '12 21:12

Javier Cadiz


People also ask

How can I run CodeIgniter 4 without PHP spark serve?

STEPS. Based on a windows computer & xampp. Edit the file C:\windows\system32\drivers\etc\hosts , add the line below at the end and save. You may need administrative privileges to change this file.

What is the difference between laravel and CodeIgniter?

Codeigniter is Object-oriented, whereas Laravel is relational Object-Oriented. Codeigniter doesn't come with built-in authentication features, whereas Laravel comes with authentication class features. Codeigniter doesn't have an inbuilt Unit testing tool, while Laravel has an inbuilt Unit testing tool.


1 Answers

I've used the following:

  1. Salt - http://www.saltstack.org/

    Worked well, a bit fiddly to setup. Super fast deployment. Lots of control. Less learning overhead that Puppet & Chef, has some level of native MySQL tools.

  2. GitHub

    Requires a internet connection to/from your machine - one where, at some level, the end point as write permissions to interactive scripts.... Works, but makes me nervous. Pulls are better than pushes, and it's better than most other solutions.

  3. Custom shell scripting

    Yeah - this is the most common, just tar up the entire CI dir once it's been validated on staging and push out using Salt...

  4. Scalextreme

    We've been looking at this for a few months - the interface is from the 1990's, but it's got really nice functionality, including system-independent script library that you can target at any machine.

  5. Turnkey Linux

    The hammer - this will migrate an entire system image from a desktop to EC2 is something like 5 minutes. Works great and you can also move stuff between VM systems. In the end, I think that updating AMI's on EC2 is so easy that this might be one of the answers...

Nothing has truly been satisfactory and DB schema changes are a huge pain. So much so that for client configs, we're moving from MySQL to Cassandra, which is basically schemaless. CI installer is interesting, but I'm not sure how it handles updates.

like image 86
ckm Avatar answered Oct 08 '22 04:10

ckm