是否需要进行任何特殊配置才能实现此目的?
目前我的设置是文件夹rails/wiki
,我在那里安装了所有我的rails东西和所有配置文件,它是/var/www/html
的子目录,是不是很好?
而不是服务器登陆页面,它只是文件夹结构:
http://btwnthelin.es/rails/wiki/
主要组件/var/www/html
有我的apache:
并且工作正常。
服务器在端口3000上运行,我以为我可以访问它
http://btwnthelin.es:3000
但会导致404错误。
development.log
[1m[36m (3.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
[1m[35m (0.2ms)[0m select sqlite_version(*)
[1m[36m (2.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
Migrating to CreateArticles (20150511093446)
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35m (0.6ms)[0m CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150511093446"]]
[1m[35m (2.5ms)[0m commit transaction
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
答案 0 :(得分:0)
在/etc/hosts
文本文件中添加此内容,
127.0.0.1 btwnthelin.es