Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf227914

Browse files
authored
Merge pull request#126 from ehuelsmann/improve-init-in-readme
Fix the order of instructions for initialization
2 parents858a06a +6515045 commitf227914

File tree

2 files changed

+9
-29
lines changed

2 files changed

+9
-29
lines changed

‎README.md‎

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ This will prompt you to confirm removing old indices and setting up mappings on
130130
the Elasticsearch service (say`YES`). It will then proceed to rsync a partial
131131
CPAN in`/CPAN` for its metadata to be imported.
132132

133-
Once the above is done, you should be able to see your local partial CPAN data
134-
in e.g.[http://localhost:5001/recent](http://localhost:5001/recent) and
135-
elsewhere.
136-
137-
Alternatively, if you just want to hack on the web frontend, you can run this
138-
instead of all the above:
133+
After the initialization above completes, the next step is to start the web
134+
frontend with the following command:
139135

140136
docker compose up web-server
141137

138+
Once that is done, you should be able to see your local partial CPAN data
139+
in e.g.[http://localhost:5001/recent](http://localhost:5001/recent) and
140+
elsewhere.
141+
142142
From here, you can proceed and hack on the MetaCPAN code at`src/metacpan-api`
143143
and/or`src/metacpan-web` directories, and saving edits will reload the
144144
corresponding apps automatically!
@@ -185,28 +185,6 @@ To access the `psql` command line client in the PostgreSQL container:
185185
Each container is responsible for a different service. Some of these services
186186
are available in the developer environment via ports on the host system.
187187

188-
We are using[traefik][13] to manage the traffic between services. The current
189-
configuration is:
190-
191-
- api:[http://api.metacpan.localhost](http://api.metacpan.localhost)
192-
- web:[http://web.metacpan.localhost](http://web.metacpan.localhost)
193-
- grep:[http://grep.metacpan.localhost](http://grep.metacpan.localhost)
194-
195-
In order to access to the localhost subdomains, you probably have to manually
196-
add these entries in you`/etc/hosts` file.
197-
198-
# add to /etc/hosts
199-
127.0.0.1 api.metacpan.localhost
200-
127.0.0.1 gh.metacpan.localhost
201-
127.0.0.1 grep.metacpan.localhost
202-
127.0.0.1 metacpan.localhost
203-
127.0.0.1 web.metacpan.localhost
204-
205-
You can access the dashboard configuration via:
206-
[http://metacpan.localhost:8080](http://metacpan.localhost:8080)
207-
208-
[0]:https://docs.traefik.io/providers/docker/
209-
210188
####`web`
211189

212190
The local instance of the web front end is accessible via:
@@ -240,7 +218,7 @@ The PostgreSQL service by default is only accessible from other containers.
240218

241219
The grep metacpan front end is accessible via:
242220

243-
-[http://grep.metacpan.localhost](http://grep.metacpan.localhost)
221+
-[http://localhost:3000](http://localhost:3000)
244222

245223
Note: this is using a smaller, frozen version of`metacpan-cpan-extracted` via
246224
[metacpan-cpan-extracted-lite](https://github.com/metacpan/metacpan-cpan-extracted-lite).

‎docker-compose.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ services:
182182
profiles:
183183
-grep
184184
image:metacpan/metacpan-grep-front-end:latest
185+
ports:
186+
-"3000:3000"
185187
build:
186188
context:./src/metacpan-grep-front-end
187189
volumes:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp