顯示具有 homestead 標籤的文章。 顯示所有文章
顯示具有 homestead 標籤的文章。 顯示所有文章

2016年10月30日 星期日

关闭 Homestead Box 每次启动的自动更新检查

每次 homestead up 的时候,都会在这个地方卡顿一下:
==> default: Checking if box 'laravel/homestead' is up to date...
file

解决#

编辑文件
~/.composer/vendor/laravel/homestead/scripts/homestead.rb
增加:
config.vm.box_check_update = false
file

from : https://laravel-china.org/topics/2235

2016年10月10日 星期一

Create additional databases in Laravel Homestead

I often see Homestead users just using the default homestead database that ships with a new Homestead box, rather than creating a new database specific to their application. When you're hosting multiple applications through your Homestead instance it makes a lot more sense to name your databases per-application, often with a _testing suffix for your test databses. It's actually really easy to add new databases inside your Homestead instance, and here are the instructions for both MySQL and PostgreSQL.

MySQL

// Login to MySQL (password is "secret")
mysql -u homestead -p

// Create the new database
CREATE DATABASE your_app_name;

// Exit MySQL
exit;

PostgreSQL

// Login to PostgreSQL (password is "secret")
psql -U homestead -h localhost

// Create the new database
CREATE DATABASE your_app_name;

// Exit PostgreSQL
\q

from : https://www.neontsunami.com/posts/create-additional-databases-in-laravel-homestead

wibiya widget