Skip to content

Commit 9a04474

Browse files
authored
Add session var example with variable (#671)
1 parent 890e038 commit 9a04474

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

examples/session-environment.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"environment": {
33
"EDITOR": "/usr/bin/vim",
4-
"HOME": "/tmp/hm",
4+
"DJANGO_SETTINGS_MODULE": "my_app.settings.local",
5+
"SERVER_PORT": "8009",
56
},
67
"windows": [
78
{
89
"panes": [
910
null,
11+
"./manage.py runserver 0.0.0.0:${SERVER_PORT}"
1012
],
11-
"window_name": "Blank pane test"
13+
"window_name": "Django project"
1214
},
1315
],
1416
"session_name": "Environment variables test"

examples/session-environment.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
session_name: Environment variables test
22
environment:
33
EDITOR: /usr/bin/vim
4-
HOME: /tmp/hm
4+
DJANGO_SETTINGS_MODULE: my_app.settings.local
5+
SERVER_PORT: "8009"
56
windows:
6-
# Emptiness will simply open a blank pane, if no shell_command_before.
7-
# All these are equivalent
8-
- window_name: Blank pane test
7+
- window_name: Django project
98
panes:
10-
-
9+
-
10+
- ./manage.py runserver 0.0.0.0:${SERVER_PORT}

0 commit comments

Comments
 (0)