Skip to content

Commit d8db8f4

Browse files
committed
Add content from epinio-samples repo
1 parent a718772 commit d8db8f4

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

docs/guides/learning-paths/code-pipelines/code-pieplines.md renamed to docs/guides/learning-paths/code-pipelines/code-pipelines.md

File renamed without changes.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Epinio samples
2+
3+
Samples of usage of [Epinio](epinio.md) to deploy workload with a command.
4+
5+
## Angular
6+
7+
Run the following command to deploy the Angular application:
8+
9+
```bash
10+
epinio push --name ngsample --path ngsample --env BP_WEB_SERVER=nginx --env BP_WEB_SERVER_ROOT=dist/ngsample --env BP_NODE_RUN_SCRIPTS=build --env BP_WEB_SERVER_ENABLE_PUSH_STATE=true
11+
# NODE_ENV=development
12+
```
13+
14+
References:
15+
16+
- [paketo-buildpacks/samples/web-servers/angular-nginx-sample](https://github.com/paketo-buildpacks/samples/tree/main/web-servers/angular-nginx-sample)
17+
- [Paketo Buildpacks > Build and Serve a Frontend Framework App](https://paketo.io/docs/howto/web-servers/#build-and-serve-a-frontend-framework-app)
18+
19+
## .NET
20+
21+
Run the following command to deploy an ASP.NET application:
22+
23+
```bash
24+
epinio push --name aspnetapisample --path src/WebApi --env ASPNETCORE_ENVIRONMENT=Development
25+
```
26+
27+
For Paketo Buildpacks to be able to create artifacts that run, the file `Procfile` must be added (see [Override the Start Process Set by the Buildpack](https://paketo.io/docs/howto/dotnet-core/#override-the-start-process-set-by-the-buildpack)).
28+
29+
For example `samples/dotnet/src/WebApi/Procfile`:
30+
31+
```Procfile
32+
web: dotnet EpinioDotnetSamples.WebApi.dll
33+
```
34+
35+
## React
36+
37+
Run the following command to deploy the application:
38+
39+
```bash
40+
epinio push --name reactsample --path sample-app --env BP_WEB_SERVER=nginx --env BP_WEB_SERVER_ROOT=build --env BP_NODE_RUN_SCRIPTS=build --env BP_WEB_SERVER_ENABLE_PUSH_STATE=true
41+
```
42+
43+
References:
44+
45+
- [paketo-buildpacks/samples/web-servers/react-frontend-sample](https://github.com/paketo-buildpacks/samples/tree/main/web-servers/react-frontend-sample)
46+
- [Paketo Buildpacks > Build and Serve a Frontend Framework App](https://paketo.io/docs/howto/web-servers/#build-and-serve-a-frontend-framework-app)
47+
- [react.dev](https://react.dev/)
48+
- [create-react-app.dev](https://create-react-app.dev/)

0 commit comments

Comments
 (0)