Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b67e8edf
Commit
b67e8edf
authored
Aug 17, 2015
by
Robert Bailey
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12199 from mesosphere/relative-guestbook
Convert guestbook example to relative urls
parents
a4b06373
227f8de5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
README.md
examples/guestbook/README.md
+1
-1
frontend-controller.yaml
examples/guestbook/frontend-controller.yaml
+1
-1
controllers.js
examples/guestbook/php-redis/controllers.js
+2
-2
index.html
examples/guestbook/php-redis/index.html
+1
-1
No files found.
examples/guestbook/README.md
View file @
b67e8edf
...
...
@@ -393,7 +393,7 @@ spec:
spec
:
containers
:
-
name
:
php-redis
image
:
kubernetes/example-guestbook-php-redis:v2
image
:
gcr.io/google_containers/example-guestbook-php-redis:v3
ports
:
-
containerPort
:
80
```
...
...
examples/guestbook/frontend-controller.yaml
View file @
b67e8edf
...
...
@@ -15,6 +15,6 @@ spec:
spec
:
containers
:
-
name
:
php-redis
image
:
kubernetes/example-guestbook-php-redis:v2
image
:
gcr.io/google_containers/example-guestbook-php-redis:v3
ports
:
-
containerPort
:
80
examples/guestbook/php-redis/controllers.js
View file @
b67e8edf
...
...
@@ -9,7 +9,7 @@ RedisController.prototype.onRedis = function() {
this
.
scope_
.
messages
.
push
(
this
.
scope_
.
msg
);
this
.
scope_
.
msg
=
""
;
var
value
=
this
.
scope_
.
messages
.
join
();
this
.
http_
.
get
(
"
/index.php?cmd=set&key=messages&value="
+
value
)
this
.
http_
.
get
(
"
index.php?cmd=set&key=messages&value="
+
value
)
.
success
(
angular
.
bind
(
this
,
function
(
data
)
{
this
.
scope_
.
redisResponse
=
"Updated."
;
}));
...
...
@@ -21,7 +21,7 @@ redisApp.controller('RedisCtrl', function ($scope, $http, $location) {
$scope
.
controller
.
location_
=
$location
;
$scope
.
controller
.
http_
=
$http
;
$scope
.
controller
.
http_
.
get
(
"
/
index.php?cmd=get&key=messages"
)
$scope
.
controller
.
http_
.
get
(
"index.php?cmd=get&key=messages"
)
.
success
(
function
(
data
)
{
console
.
log
(
data
);
$scope
.
messages
=
data
.
data
.
split
(
","
);
...
...
examples/guestbook/php-redis/index.html
View file @
b67e8edf
...
...
@@ -3,7 +3,7 @@
<title>
Guestbook
</title>
<link
rel=
"stylesheet"
href=
"//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"
>
<script
src=
"https://ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.min.js"
></script>
<script
src=
"
/
controllers.js"
></script>
<script
src=
"controllers.js"
></script>
<script
src=
"ui-bootstrap-tpls-0.10.0.min.js"
></script>
</head>
<body
ng-controller=
"RedisCtrl"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment