Guest User

Untitled

a guest
Dec 7th, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.66 KB | None | 0 0
  1. heroku run php /app/artisan migrate
  2.  
  3. APP_NAME=Laravel
  4. APP_ENV=local
  5. APP_KEY=base64:ggvJC8KVXte8skkPiwPi/cAx5bS0L8WJk3nzWP4bMIA=
  6. APP_DEBUG=true
  7. APP_URL=http://localhost
  8.  
  9. LOG_CHANNEL=stack
  10.  
  11. DB_CONNECTION=pgsql
  12. DB_HOST=ec2-23-21-65-173.compute-1.amazonaws.com
  13. DB_PORT=5432
  14. DB_DATABASE=d6hea6nf02h1an
  15. DB_USERNAME=dfgicaihxreswg
  16. DB_PASSWORD=ae947e0cfddd775f69aba8ffbf96e1a7b0e5d71a1749695c82642a01399bdea6
  17.  
  18. BROADCAST_DRIVER=log
  19. CACHE_DRIVER=file
  20. SESSION_DRIVER=file
  21. SESSION_LIFETIME=120
  22. QUEUE_DRIVER=sync
  23.  
  24. REDIS_HOST=127.0.0.1
  25. REDIS_PASSWORD=null
  26. REDIS_PORT=6379
  27.  
  28. MAIL_DRIVER=smtp
  29. MAIL_HOST=smtp.mailtrap.io
  30. MAIL_PORT=2525
  31. MAIL_USERNAME=null
  32. MAIL_PASSWORD=null
  33. MAIL_ENCRYPTION=null
  34.  
  35. PUSHER_APP_ID=
  36. PUSHER_APP_KEY=
  37. PUSHER_APP_SECRET=
  38. PUSHER_APP_CLUSTER=mt1
  39.  
  40. MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
  41. MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
  42.  
  43. y este es mi config.database
  44.  
  45.  
  46. <?php
  47.  
  48. $url = parse_url(getenv("DATABASE_URL"));
  49.  
  50. $host = $url["ec2-23-21-65-173.compute-1.amazonaws.com"];
  51. $username = $url["dfgicaihxreswg"];
  52. $password = $url["ae947e0cfddd775f69aba8ffbf96e1a7b0e5d71a1749695c82642a01399bdea6"];
  53. $database = substr($url["d6hea6nf02h1an"], 1);
  54.  
  55. return [
  56.  
  57. /*
  58. |--------------------------------------------------------------------------
  59. | Default Database Connection Name
  60. |--------------------------------------------------------------------------
  61. |
  62. | Here you may specify which of the database connections below you wish
  63. | to use as your default connection for all database work. Of course
  64. | you may use many connections at once using the Database library.
  65. |
  66. */
  67.  
  68. 'default' => env('DB_CONNECTION', 'pgsql_p'),
  69.  
  70. /*
  71. |--------------------------------------------------------------------------
  72. | Database Connections
  73. |--------------------------------------------------------------------------
  74. |
  75. | Here are each of the database connections setup for your application.
  76. | Of course, examples of configuring each database platform that is
  77. | supported by Laravel is shown below to make development simple.
  78. |
  79. |
  80. | All database work in Laravel is done through the PHP PDO facilities
  81. | so make sure you have the driver for your particular database of
  82. | choice installed on your machine before you begin development.
  83. |
  84. */
  85.  
  86. 'connections' => [
  87.  
  88. 'sqlite' => [
  89. 'driver' => 'sqlite',
  90. 'database' => env('DB_DATABASE', database_path('database.sqlite')),
  91. 'prefix' => '',
  92. ],
  93.  
  94. 'mysql' => [
  95. 'driver' => 'mysql',
  96. 'host' => env('DB_HOST', '127.0.0.1'),
  97. 'port' => env('DB_PORT', '3306'),
  98. 'database' => env('DB_DATABASE', 'forge'),
  99. 'username' => env('DB_USERNAME', 'forge'),
  100. 'password' => env('DB_PASSWORD', ''),
  101. 'unix_socket' => env('DB_SOCKET', ''),
  102. 'charset' => 'utf8mb4',
  103. 'collation' => 'utf8mb4_unicode_ci',
  104. 'prefix' => '',
  105. 'strict' => true,
  106. 'engine' => null,
  107. ],
  108.  
  109. 'pgsql' => [
  110. 'driver' => 'pgsql',
  111. 'host' => env('DB_HOST', '127.0.0.1'),
  112. 'port' => env('DB_PORT', '5432'),
  113. 'database' => env('DB_DATABASE', 'forge'),
  114. 'username' => env('DB_USERNAME', 'forge'),
  115. 'password' => env('DB_PASSWORD', ''),
  116. 'charset' => 'utf8',
  117. 'prefix' => '',
  118. 'schema' => 'public',
  119. 'sslmode' => 'prefer',
  120. ],
  121.  
  122. 'pgsql_p' => [
  123. 'driver' => 'pgsql',
  124. 'host' => $host,
  125. 'database' => $database,
  126. 'username' => $username,
  127. 'password' => $password,
  128. 'charset' => 'utf8',
  129. 'prefix' => '',
  130. 'schema' => 'public',
  131. ],
  132.  
  133. 'sqlsrv' => [
  134. 'driver' => 'sqlsrv',
  135. 'host' => env('DB_HOST', 'localhost'),
  136. 'port' => env('DB_PORT', '1433'),
  137. 'database' => env('DB_DATABASE', 'forge'),
  138. 'username' => env('DB_USERNAME', 'forge'),
  139. 'password' => env('DB_PASSWORD', ''),
  140. 'charset' => 'utf8',
  141. 'prefix' => '',
  142. ],
  143.  
  144. ],
  145.  
  146. /*
  147. |--------------------------------------------------------------------------
  148. | Migration Repository Table
  149. |--------------------------------------------------------------------------
  150. |
  151. | This table keeps track of all the migrations that have already run for
  152. | your application. Using this information, we can determine which of
  153. | the migrations on disk haven't actually been run in the database.
  154. |
  155. */
  156.  
  157. 'migrations' => 'migrations',
  158.  
  159. /*
  160. |--------------------------------------------------------------------------
  161. | Redis Databases
  162. |--------------------------------------------------------------------------
  163. |
  164. | Redis is an open source, fast, and advanced key-value store that also
  165. | provides a richer set of commands than a typical key-value systems
  166. | such as APC or Memcached. Laravel makes it easy to dig right in.
  167. |
  168. */
  169.  
  170. 'redis' => [
  171.  
  172. 'client' => 'predis',
  173.  
  174. 'default' => [
  175. 'host' => env('REDIS_HOST', '127.0.0.1'),
  176. 'password' => env('REDIS_PASSWORD', null),
  177. 'port' => env('REDIS_PORT', 6379),
  178. 'database' => env('REDIS_DB', 0),
  179. ],
  180.  
  181. 'cache' => [
  182. 'host' => env('REDIS_HOST', '127.0.0.1'),
  183. 'password' => env('REDIS_PASSWORD', null),
  184. 'port' => env('REDIS_PORT', 6379),
  185. 'database' => env('REDIS_CACHE_DB', 1),
  186. ],
  187.  
  188. ],
  189.  
  190. ];
  191.  
  192. C:TelegramDatabase>php artisan migrate
  193. PHP Notice: Undefined index: ec2-23-21-65-173.compute-1.amazonaws.com in C:TelegramDatabaseconfigdatabase.php on line 5
  194.  
  195. Notice: Undefined index: ec2-23-21-65-173.compute-1.amazonaws.com in C:TelegramDatabaseconfigdatabase.php on line 5
  196. PHP Notice: Undefined index: dfgicaihxreswg in C:TelegramDatabaseconfigdatabase.php on line 6
  197.  
  198. Notice: Undefined index: dfgicaihxreswg in C:TelegramDatabaseconfigdatabase.php on line 6
  199. PHP Notice: Undefined index: ae947e0cfddd775f69aba8ffbf96e1a7b0e5d71a1749695c82642a01399bdea6 in C:TelegramDatabaseconfigdatabase.php on line 7
  200.  
  201. Notice: Undefined index: ae947e0cfddd775f69aba8ffbf96e1a7b0e5d71a1749695c82642a01399bdea6 in C:TelegramDatabaseconfigdatabase.php on line 7
  202. PHP Notice: Undefined index: d6hea6nf02h1an in C:TelegramDatabaseconfigdatabase.php on line 8
  203.  
  204. Notice: Undefined index: d6hea6nf02h1an in C:TelegramDatabaseconfigdatabase.php on line 8
  205.  
  206. IlluminateDatabaseQueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations)
  207.  
  208. at C:TelegramDatabasevendorlaravelframeworksrcIlluminateDatabaseConnection.php:664
  209. 660| // If an exception occurs when attempting to run a query, we'll format the error
  210. 661| // message to include the bindings with SQL, which will make this exception a
  211. 662| // lot more helpful to the developer instead of just the database's errors.
  212. 663| catch (Exception $e) {
  213. > 664| throw new QueryException(
  214. 665| $query, $this->prepareBindings($bindings), $e
  215. 666| );
  216. 667| }
  217. 668|
  218.  
  219. Exception trace:
  220.  
  221. 1 PDOException::("could not find driver")
  222. C:TelegramDatabasevendorlaravelframeworksrcIlluminateDatabaseConnectorsConnector.php:68
  223.  
  224. 2 PDO::__construct("pgsql:host=ec2-23-21-65-173.compute-1.amazonaws.com;dbname=d6hea6nf02h1an;port=5432;sslmode=prefer", "dfgicaihxreswg", "ae947e0cfddd775f69aba8ffbf96e1a7b0e5d71a1749695c82642a01399bdea6", [])
  225. C:TelegramDatabasevendorlaravelframeworksrcIlluminateDatabaseConnectorsConnector.php:68
  226.  
  227. Please use the argument -v to see more details.
  228.  
  229. C:TelegramDatabase>
Add Comment
Please, Sign In to add comment