is there any special configuration that needs to occur to make this happen?
currently my setup is such that the folder rails/wiki
, where I installed all my rails stuff and all the config files live, it is a subdirectory of /var/www/html
, is that alright?
instead of the server landing page, it's just the folder structure:
http://btwnthelin.es/rails/wiki/ .
The main component /var/www/html
has my apache stuff:
and that works fine.
The server is running on port 3000, I thought I could access it by http://btwnthelin.es:3000
but that results in a 404 error.
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"
在您的/etc/hosts
文本文件中添加此内容,
127.0.0.1 btwnthelin.es
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.