In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace ConsoleNancySelfHostedNetTest | |
{ | |
[TestClass] | |
public class TestIbsQueryBuilder | |
{ | |
public class MyModel : IbsQueryBuilder | |
{ |
using System; | |
using System.Text.RegularExpressions; | |
namespace ConsoleNancySelfHostedNetTest | |
{ | |
public abstract class IbsQueryBuilder | |
{ | |
private string _queryCriteria = ""; | |
public virtual IbsQueryBuilder Where(string col, string arg1, string arg2 = null) |
Get["/"] = _ => { | |
dynamic model = new ExpandoObject(); | |
model.Name = "Nancy"; | |
return Response.AsJson((object)model); | |
}; |
<?php | |
/** | |
* Convert under_score type array's keys to camelCase type array's keys | |
* @param array $array array to convert | |
* @param array $arrayHolder parent array holder for recursive array | |
* @return array camelCase array | |
*/ | |
public function camelCaseKeys($array, $arrayHolder = array()) { | |
$camelCaseArray = !empty($arrayHolder) ? $arrayHolder : array(); |
[program:laravel-worker] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php home/vagrant/Code/lead_reactor/artisan queue:work database --sleep=3 --tries=3 --daemon | |
autostart=true | |
autorestart=true | |
user=vagrant | |
numprocs=8 | |
redirect_stderr=true | |
stdout_logfile=home/vagrant/Code/lead_reactor/storage/logs/laravel-worker.log |
# Change to the project directory | |
cd /home/forge/domain.com | |
# Turn on maintenance mode | |
php artisan down | |
# Pull the latest changes from the git repository | |
git pull origin master | |
# Install/update composer dependecies |
diff --git a/Vagrantfile b/Vagrantfile | |
index 12b8f52..7b77ab2 100644 | |
--- a/Vagrantfile | |
+++ b/Vagrantfile | |
@@ -17,6 +17,11 @@ require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb') | |
Vagrant.require_version '>= 1.9.0' | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
+ | |
+ config.vm.provider 'virtualbox' do |vb| |