我刚刚在我的新虚拟linode服务器上部署了我的ruby应用程序 该应用程序在我自己的计算机上工作正常,但它不会在新服务器上运行,它只是给我错误“我们很抱歉,但出了点问题”
我使用rake db:migrate RAILS_ENV = production进行设置,但是我看到了development.log和production.log文件 - 为什么?
以下是production.log的输出:
Connecting to database specified by database.yml
Migrating to CreateCustomers (20130319010101)
Migrating to CreateItems (20130319051213)
Migrating to Item (20130319233442)
Migrating to CreateInvoices (20130320042000)
Migrating to AddItemIdToCustomers (20130322031006)
Migrating to AddItemidToCustomers (20130322031213)
Migrating to AddCustomeridToItems (20130322051630)
Migrating to RenameInvoiceToInvoices (20130322070426)
Migrating to AddOrderDateToInvoices (20130326132600)
Migrating to AddInvoiceDateToInvoices (20130326132744)
Migrating to AddCustomerIdToInvoices (20130326144305)
Migrating to AddInvoiceIdToItems (20130327001633)
Migrating to CreateSales (20130517040035)
Migrating to AddDetailsToSale (20130524231405)
Migrating to AddSaleIDtoItem (20130525010101)
Migrating to AddSaleidToItem (20130525010217)
Migrating to CreateSoldItems (20130526001221)
Migrating to AddSaleidTosoldItem (20130526001757)
Migrating to AddSaleidToSoldItem (20130526001823)
Migrating to AddDeviseToUsers (20130605002630)
Migrating to AddCategoryToItems (20130606223349)
Migrating to CreateAppointments (20130608023643)
Migrating to AddAppttypeToAppointment (20130611025125)
Migrating to RemoveType (20130611025349)
Migrating to CreatePayouts (20130621014252)
Connecting to database specified by database.yml
Migrating to CreateCustomers (20130319010101)
Migrating to CreateItems (20130319051213)
Migrating to Item (20130319233442)
Migrating to CreateInvoices (20130320042000)
Migrating to AddItemIdToCustomers (20130322031006)
Migrating to AddItemidToCustomers (20130322031213)
Migrating to AddCustomeridToItems (20130322051630)
Migrating to RenameInvoiceToInvoices (20130322070426)
Migrating to AddOrderDateToInvoices (20130326132600)
Migrating to AddInvoiceDateToInvoices (20130326132744)
Migrating to AddCustomerIdToInvoices (20130326144305)
Migrating to AddInvoiceIdToItems (20130327001633)
Migrating to CreateSales (20130517040035)
Migrating to AddDetailsToSale (20130524231405)
Migrating to AddSaleIDtoItem (20130525010101)
Migrating to AddSaleidToItem (20130525010217)
Migrating to CreateSoldItems (20130526001221)
Migrating to AddSaleidTosoldItem (20130526001757)
Migrating to AddSaleidToSoldItem (20130526001823)
Migrating to AddDeviseToUsers (20130605002630)
Migrating to AddCategoryToItems (20130606223349)
Migrating to CreateAppointments (20130608023643)
Migrating to AddAppttypeToAppointment (20130611025125)
Migrating to RemoveType (20130611025349)
Migrating to CreatePayouts (20130621014252)
这是development.log的输出:
Connecting to database specified by database.yml
^[[1m^[[36m (34.3ms)^[[0m ^[[1mselect sqlite_version(*)^[[0m
^[[1m^[[35m (2.5ms)^[[0m CREATE TABLE "appointments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "date" date, "time" time, "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255), "phone" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "appt_type" integer)
^[[1m^[[36m (1.8ms)^[[0m ^[[1mCREATE TABLE "customers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "firstName" varchar(255), "lastName" varchar(255), "email" varchar(255), "phone" integer, "notes" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "item_id" integer) ^[[0m
^[[1m^[[35m (1.8ms)^[[0m CREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "customer" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "order_date" varchar(255), "invoice_date" varchar(255), "customer_id" integer)
^[[1m^[[36m (1.8ms)^[[0m ^[[1mCREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "brand" varchar(255), "description" varchar(255), "sold" boolean, "paid" boolean, "qty" integer, "price" integer, "customer" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "customer_id" integer, "invoice_id" integer, "sale_id" integer, "category" varchar(255)) ^[[0m
^[[1m^[[35m (1.6ms)^[[0m CREATE TABLE "payouts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" integer, "date" date, "time" time, "payment_method" integer, "payee" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
^[[1m^[[36m (2.1ms)^[[0m ^[[1mCREATE TABLE "sales" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar(255), "brand" varchar(255), "productID" varchar(255), "price" integer, "discount" integer, "paymentMethod" integer, "notes" varchar(255), "cashGiven" integer, "subTotal" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "total" integer, "tax" integer) ^[[0m
^[[1m^[[35m (1.8ms)^[[0m CREATE TABLE "sold_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar(255), "brand" varchar(255), "productID" integer, "price" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "sale_id" integer)
^[[1m^[[36m (2.0ms)^[[0m ^[[1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255)) ^[[0m
^[[1m^[[35m (1.6ms)^[[0m CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
^[[1m^[[36m (1.6ms)^[[0m ^[[1mCREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")^[[0m
^[[1m^[[35m (1.6ms)^[[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
^[[1m^[[36m (1.3ms)^[[0m ^[[1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")^[[0m
^[[1m^[[35m (0.1ms)^[[0m SELECT version FROM "schema_migrations"
^[[1m^[[36m (1.1ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130621014252')^[[0m
^[[1m^[[35m (1.2ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130319010101')
^[[1m^[[36m (1.2ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130326132600')^[[0m
^[[1m^[[35m (1.0ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130611025125')
^[[1m^[[36m (1.1ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130322070426')^[[0m
^[[1m^[[35m (1.1ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130525010101')
^[[1m^[[36m (1.0ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130526001757')^[[0m
^[[1m^[[35m (1.1ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130319233442')
^[[1m^[[36m (1.0ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130322031213')^[[0m
^[[1m^[[35m (1.0ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130517040035')
^[[1m^[[36m (0.8ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130608023643')^[[0m
^[[1m^[[35m (0.9ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130322031006')
^[[1m^[[36m (1.0ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130611025349')^[[0m
^[[1m^[[35m (1.1ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130526001823')
^[[1m^[[36m (0.9ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130320042000')^[[0m
^[[1m^[[35m (1.0ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130525010217')
^[[1m^[[36m (0.9ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130524231405')^[[0m
^[[1m^[[35m (1.0ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130605002630')
^[[1m^[[36m (0.9ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130327001633')^[[0m
^[[1m^[[35m (1.0ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130606223349')
^[[1m^[[36m (1.1ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130526001221')^[[0m
^[[1m^[[35m (1.0ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130322051630')
^[[1m^[[36m (1.0ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130319051213')^[[0m
^[[1m^[[35m (1.0ms)^[[0m INSERT INTO "schema_migrations" (version) VALUES ('20130326132744')
^[[1m^[[36m (1.1ms)^[[0m ^[[1mINSERT INTO "schema_migrations" (version) VALUES ('20130326144305')^[[0m
^[[1m^[[35m (2.6ms)^[[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
Connecting to database specified by database.yml
^[[1m^[[36m (2.2ms)^[[0m ^[[1mSELECT "schema_migrations"."version" FROM "schema_migrations" ^[[0m
Migrating to CreateCustomers (20130319010101)
Migrating to CreateItems (20130319051213)
Migrating to Item (20130319233442)
Migrating to CreateInvoices (20130320042000)
Migrating to AddItemIdToCustomers (20130322031006)
Migrating to AddItemidToCustomers (20130322031213)
Migrating to AddCustomeridToItems (20130322051630)
Migrating to RenameInvoiceToInvoices (20130322070426)
Migrating to AddOrderDateToInvoices (20130326132600)
Migrating to AddInvoiceDateToInvoices (20130326132744)
Migrating to AddCustomerIdToInvoices (20130326144305)
Migrating to AddInvoiceIdToItems (20130327001633)
Migrating to CreateSales (20130517040035)
Migrating to AddDetailsToSale (20130524231405)
Migrating to AddSaleIDtoItem (20130525010101)
Migrating to AddSaleidToItem (20130525010217)
Migrating to CreateSoldItems (20130526001221)
Migrating to AddSaleidTosoldItem (20130526001757)
Migrating to AddSaleidToSoldItem (20130526001823)
Migrating to AddDeviseToUsers (20130605002630)
Migrating to AddCategoryToItems (20130606223349)
Migrating to CreateAppointments (20130608023643)
Migrating to AddAppttypeToAppointment (20130611025125)
Migrating to RemoveType (20130611025349)
Migrating to CreatePayouts (20130621014252)
^[[1m^[[35m (0.1ms)^[[0m select sqlite_version(*)
^[[1m^[[36m (0.2ms)^[[0m ^[[1mSELECT "schema_migrations"."version" FROM "schema_migrations" ^[[0m