mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-22 19:01:32 +00:00
parent
c075ec2c79
commit
a615164394
5 changed files with 7 additions and 8 deletions
|
@ -8,6 +8,5 @@ COPY server /app/server
|
|||
COPY --from=node /app/ui/dist /app/dist
|
||||
RUN cd /app/server && cargo build --release
|
||||
RUN mv /app/server/target/release/lemmy /app/
|
||||
EXPOSE 8080
|
||||
WORKDIR /app/
|
||||
|
||||
EXPOSE 8536
|
||||
|
|
|
@ -26,7 +26,7 @@ git clone https://github.com/dessalines/lemmy
|
|||
cd lemmy
|
||||
docker-compose up
|
||||
```
|
||||
and goto http://localhost:8080
|
||||
and goto http://localhost:8536
|
||||
### Local Development
|
||||
#### Requirements
|
||||
- [Rust](https://www.rust-lang.org/)
|
||||
|
@ -43,7 +43,7 @@ git clone https://github.com/dessalines/lemmy
|
|||
cd lemmy
|
||||
./install.sh
|
||||
```
|
||||
and goto http://localhost:8080
|
||||
and goto http://localhost:8536
|
||||
|
||||
## Documentation
|
||||
- [ActivityPub API.md](docs/API.md)
|
||||
|
|
|
@ -18,7 +18,7 @@ services:
|
|||
context: .
|
||||
command: /bin/sh -c /app/lemmy
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "8536:8536"
|
||||
environment:
|
||||
LEMMY_FRONT_END_DIR: /app/dist
|
||||
DATABASE_URL: postgres://rrr:rrr@db:5432/rrr
|
||||
|
|
|
@ -261,11 +261,11 @@ fn main() {
|
|||
fs::StaticFiles::new(front_end_dir()).unwrap()
|
||||
)
|
||||
.finish()
|
||||
}).bind("0.0.0.0:8080")
|
||||
}).bind("0.0.0.0:8536")
|
||||
.unwrap()
|
||||
.start();
|
||||
|
||||
println!("Started http server: 0.0.0.0:8080");
|
||||
println!("Started http server: 0.0.0.0:8536");
|
||||
let _ = sys.run();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
export const endpoint = `${window.location.hostname}:8080`;
|
||||
export const endpoint = `${window.location.hostname}:8536`;
|
||||
export let wsUri = (window.location.protocol=='https:') ? 'wss://' : 'ws://' + endpoint + '/service/ws';
|
||||
|
|
Loading…
Reference in a new issue