-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes the need for mobile-working-branch. Closes btcpayserver/btcpayserver#5968.
- Loading branch information
1 parent
57355d4
commit c38e944
Showing
3 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,21 +11,12 @@ git clone [email protected]:btcpayserver/app.git | |
# Switch to it | ||
cd app | ||
|
||
# Initialize the server submodule | ||
git submodule init && git submodule update --recursive | ||
|
||
# Install the workloads | ||
dotnet workload restore | ||
# Run the setup script | ||
./setup.sh | ||
|
||
# Go to the server submodule | ||
cd submodules/btcpayserver/BTCPayServer.Tests | ||
|
||
# Verify you are on the `mobile-working-branch` branch | ||
git branch --show current | ||
|
||
# If not, check it out | ||
git checkout mobile-working-branch | ||
|
||
# Run the server | ||
docker-compose up dev | ||
``` | ||
|
@@ -40,19 +31,6 @@ Click the Connect button, use `http://localhost:14142` as the server URL and an | |
After the first run of `DEV ALL` on a Linux machine with a new .NET setup, you may run into the [dotnet dev-certs - Untrusted Root](https://github.com/dotnet/aspnetcore/issues/41503) | ||
error, and you may find a solution at the [following link](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-dev-certs) | ||
|
||
## Missing dependencies in development environment | ||
|
||
If BTCPay Server does not start up with the app and its dependencies, run this: | ||
|
||
```bash | ||
cd BTCPayApp.Core | ||
dotnet publish -c Debug -o ../BTCPayServer.Plugins.App/bin/Debug/net8.0 | ||
cd - | ||
cd BTCPayServer.Plugins.App | ||
dotnet publish -c Debug -o bin/Debug/net8.0 | ||
cd - | ||
``` | ||
|
||
## Lightning Channels | ||
|
||
To establish channels for local testing, you can use the Docker Lightning CLI scripts like this: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Initialize the server submodule | ||
git submodule init && git submodule update --recursive | ||
|
||
# Install the workloads | ||
dotnet workload restore | ||
|
||
# Create appsettings file to include app plugin when running the server | ||
appsettings="submodules/btcpayserver/BTCPayServer/appsettings.dev.json" | ||
if [ ! -f $appsettings ]; then | ||
echo '{ "DEBUG_PLUGINS": "../../../BTCPayServer.Plugins.App/bin/Debug/net8.0/BTCPayServer.Plugins.App.dll" }' > $appsettings | ||
fi | ||
|
||
# Build the core and plugin to share their dependencies with the server | ||
cd BTCPayApp.Core | ||
dotnet publish -c Debug -o ../BTCPayServer.Plugins.App/bin/Debug/net8.0 | ||
cd - | ||
|
||
cd BTCPayServer.Plugins.App | ||
dotnet publish -c Debug -o bin/Debug/net8.0 | ||
cd - |
Submodule btcpayserver
updated
11 files