Skip to content

Commit f36a0ec

Browse files
authored
Merge pull request #71 from fairpm/just_start
2 parents fc5b0a4 + cc0b644 commit f36a0ec

31 files changed

Lines changed: 146 additions & 463 deletions

.env.example

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
55
APP_TIMEZONE=UTC
6-
APP_URL=https://api.aspiredev.org
6+
APP_URL=https://api.aspirecloud.localhost
77

88

99
# Feature Flags
@@ -61,12 +61,12 @@ REDIS_PASSWORD=null
6161
REDIS_PORT=6379
6262

6363
MAIL_MAILER=smtp
64-
MAIL_HOST=mail.aspiredev.org
64+
MAIL_HOST=mail.aspirecloud.localhost
6565
MAIL_PORT=1025
6666
MAIL_USERNAME=null
6767
MAIL_PASSWORD=null
6868
MAIL_ENCRYPTION=null
69-
MAIL_FROM_ADDRESS="do-not-reply@aspiredev.org"
69+
MAIL_FROM_ADDRESS="do-not-reply@aspirecloud.localhost"
7070
MAIL_FROM_NAME="${APP_NAME}"
7171

7272
AWS_ACCESS_KEY_ID=
@@ -78,13 +78,13 @@ AWS_USE_PATH_STYLE_ENDPOINT=false
7878
VITE_APP_NAME="${APP_NAME}"
7979

8080
# Services configuration
81-
MAILGUN_DOMAIN=aspiredev.org
81+
MAILGUN_DOMAIN=aspirecloud.localhost
8282
MAILGUN_ENDPOINT=api.mailgun.net
8383
MAILGUN_SECRET=
8484

8585
# AspirePress Related Configuration
86-
DOWNLOAD_BASE=https://api.aspiredev.org/download/
87-
# DOWNLOAD_BASE=https://fastly.api.aspiredev.org/download/
86+
DOWNLOAD_BASE=https://api.aspirecloud.localhost/download/
87+
# DOWNLOAD_BASE=https://fastly.api.aspirecloud.localhost/download/
8888
DOWNLOAD_CACHE_SECONDS=864000
8989

9090
# Elasticsearch Configuration

Makefile

Lines changed: 0 additions & 157 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
11
[//]: # (@formatter:off)
22
# AspireCloud
33

4-
This project is designed to function as a CDN/API endpoint system for distributing WordPress assets (themes, plugins, core) to users of the [AspirePress Updater](https://github.com/aspirepress/updater-plugin).
4+
This project is designed to function as an API endpoint for distributing [FAIR](https://fair.pm) packages. Currently it can serve WordPress plugins through [FAIR Connect](https://github.com/fairpm/fair-plugin) as well as extensions for TYPO3 v14.0 and up.
55

6-
# 🪧 CloudFest Hackathon 2025: see [/docs/readme.hackathon.md](./docs/readme.hackathon.md)
6+
## Quick Start
77

8-
## Setup
8+
If you're new to FAIR, we recommend using the [start-here repo](https://github.com/fairpm/start-here#quick-start), which will download and bootstrap an AspireCloud instance with just one command (`just start`). After that, your instance will be accessible at https://api.aspirecloud.localhost.
99

10-
### Quick Start
10+
### Quick Start for Standalone instance
1111

12-
```
13-
make init
14-
```
15-
16-
Next configure WordPress to use your local version of AspireCloud, and you're good to go!
17-
18-
## Using https://api.aspiredev.org instead of localhost
19-
20-
The local dev instance can be reached this way by enabling a [Traefik](https://hub.docker.com/_/traefik) proxy server:
21-
22-
make traefik-up
23-
24-
You will then be able to reach the instance at https://api.aspiredev.org
12+
If you're not running the whole start-here stack, you can still bring up an AC instance with `just start` in a fresh checkout of the AspireCloud repo (this one). Since none of the services expose local ports by default, you will want to edit `docker-compose.override.yml` to add listening ports (see docker-compose.override.yml.dist for examples).
2513

2614
## Notes
2715

bin/create-external-network.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

bin/dcexec

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
#!/bin/bash
2-
32
cd $(dirname $0)/..
4-
base=$(pwd)
5-
6-
svc=${APP_SERVICE:-webapp}
73

8-
exec docker compose exec $svc "$@"
4+
exec docker compose exec "${DCEXEC_SERVICE:-webapp}" "$@"

bin/dcrun

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
#!/bin/bash
2-
32
cd $(dirname $0)/..
4-
base=$(pwd)
5-
6-
svc=${CLI_SERVICE:-cli}
73

8-
exec docker compose run --rm $svc "$@"
4+
exec docker compose run --rm "${DCRUN_SERVICE:-cli}" "$@"

bin/remove-external-network.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

bruno/environments/Local API.bru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
vars {
2-
API_URL: http://api.aspiredev.org
3-
DOWNLOADS_URL: http://downloads.aspiredev.org
2+
API_URL: http://api.aspirecloud.localhost
3+
DOWNLOADS_URL: http://downloads.aspirecloud.localhost
44
}
55
vars:secret [
66
API_KEY

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ services:
1313
app-net: ~
1414
aspire-net:
1515
aliases:
16-
- 'api.aspiredev.org'
16+
- 'api.aspirecloud.localhost'
1717
labels:
1818
- "traefik.enable=true"
19-
- "traefik.http.routers.ap-api.rule=Host(`api.aspiredev.org`)"
20-
- "traefik.http.routers.ap-api-https.rule=Host(`api.aspiredev.org`)"
19+
- "traefik.http.routers.ap-api.rule=Host(`api.aspirecloud.localhost`)"
20+
- "traefik.http.routers.ap-api-https.rule=Host(`api.aspirecloud.localhost`)"
2121
- "traefik.http.routers.ap-api-https.tls=true"
2222

2323
redis:
@@ -37,7 +37,7 @@ services:
3737
app-net: ~
3838
aspire-net:
3939
aliases:
40-
- 'db.aspiredev.org'
40+
- 'db.aspirecloud.localhost'
4141

4242
queue-worker:
4343
build:
@@ -86,7 +86,7 @@ services:
8686
app-net: ~
8787
aspire-net:
8888
aliases:
89-
- 'mail.aspiredev.org'
89+
- 'mail.aspirecloud.localhost'
9090
environment:
9191
MP_MAX_MESSAGES: 500
9292
MP_SMTP_AUTH_ACCEPT_ANY: 1

docker/traefik/README.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)