Pasos preliminares
Versión 9 (Guillermo Zdanowicz, 21/05/2019 14:53)
1 | 1 | Guillermo Zdanowicz | h1. Pasos preliminares |
---|---|---|---|
2 | 1 | Guillermo Zdanowicz | |
3 | 1 | Guillermo Zdanowicz | *Configurar apache* |
4 | 1 | Guillermo Zdanowicz | |
5 | 1 | Guillermo Zdanowicz | *Bajar proyecto de gitlab* |
6 | 1 | Guillermo Zdanowicz | |
7 | 1 | Guillermo Zdanowicz | *Crear la base de datos* |
8 | 2 | Guillermo Zdanowicz | |
9 | 2 | Guillermo Zdanowicz | *editar y configurar acceso en* |
10 | 1 | Guillermo Zdanowicz | |
11 | 1 | Guillermo Zdanowicz | /config/database.php |
12 | 1 | Guillermo Zdanowicz | |
13 | 1 | Guillermo Zdanowicz | Luego |
14 | 1 | Guillermo Zdanowicz | |
15 | 1 | Guillermo Zdanowicz | composer install |
16 | 3 | Guillermo Zdanowicz | |
17 | 3 | Guillermo Zdanowicz | cp .env.example .env |
18 | 3 | Guillermo Zdanowicz | |
19 | 4 | Guillermo Zdanowicz | editar y configurar acceso a base de datos en archivo .env |
20 | 4 | Guillermo Zdanowicz | |
21 | 3 | Guillermo Zdanowicz | php artisan key:generate |
22 | 4 | Guillermo Zdanowicz | |
23 | 4 | Guillermo Zdanowicz | cada vez que se baja hay que poner |
24 | 4 | Guillermo Zdanowicz | |
25 | 4 | Guillermo Zdanowicz | php artisan migrate |
26 | 5 | Guillermo Zdanowicz | |
27 | 5 | Guillermo Zdanowicz | en /databases/seeds/DatabaseSeeder.php |
28 | 5 | Guillermo Zdanowicz | |
29 | 5 | Guillermo Zdanowicz | <pre> |
30 | 7 | Guillermo Zdanowicz | ... |
31 | 7 | Guillermo Zdanowicz | use Illuminate\Database\Eloquent\Model; |
32 | 7 | Guillermo Zdanowicz | ... |
33 | 5 | Guillermo Zdanowicz | public function run() |
34 | 5 | Guillermo Zdanowicz | { |
35 | 5 | Guillermo Zdanowicz | // $this->call(UsersTableSeeder::class); |
36 | 5 | Guillermo Zdanowicz | |
37 | 5 | Guillermo Zdanowicz | DB::table('users')->insert([ |
38 | 5 | Guillermo Zdanowicz | 'name' => 'admin', |
39 | 5 | Guillermo Zdanowicz | 'email' => 'informatica@ucu.edu.ar', |
40 | 8 | Guillermo Zdanowicz | 'password' => bcrypt('ucu522') |
41 | 5 | Guillermo Zdanowicz | ]); |
42 | 5 | Guillermo Zdanowicz | </pre> |
43 | 6 | Guillermo Zdanowicz | |
44 | 9 | Guillermo Zdanowicz | Antes de correr el seed se recomienda ejecutar |
45 | 9 | Guillermo Zdanowicz | |
46 | 9 | Guillermo Zdanowicz | composer dump-autoload |
47 | 9 | Guillermo Zdanowicz | |
48 | 6 | Guillermo Zdanowicz | Para correr y cargar los datos configurados (tambien pueden cargarse datos de prueba) |
49 | 6 | Guillermo Zdanowicz | |
50 | 6 | Guillermo Zdanowicz | php artisan db:seed |