Skip to content

Commit

Permalink
Merge pull request #17 from opensourcerouting/main
Browse files Browse the repository at this point in the history
Release 1.0.5
  • Loading branch information
RodrigoMNardi authored Nov 21, 2023
2 parents 5de2246 + 893e43d commit 3c4feaf
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ build-iPhoneSimulator/
# .rubocop-https?--*

.env
config/postgresql.yml
config/postgresql.yml
puma.pid
21 changes: 21 additions & 0 deletions service/devel/server_devel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

#
# SPDX-License-Identifier: BSD-2-Clause
#
# server_devel.sh
# Part of NetDEF CI System
#
# Copyright (c) 2023 by
# Network Device Education Foundation, Inc. ("NetDEF")
#
# frozen_string_literal: true
#

#
# SPDX-License-Identifier: BSD-2-Clause
#
# Startup script for CI Slack Bot

echo ">> Running server"
rackup -o 0.0.0.0 -p 4681 config.ru
12 changes: 12 additions & 0 deletions service/devel/slack_cibot_devel.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description="CI Slack Bot DEVEL"
After=network.target

[Service]
User=slack_cibot_devel
WorkingDirectory=/home/slack_cibot_devel/slack_github_bot
ExecStart=/home/slack_cibot_devel/slack_github_bot/service/devel/server_devel.sh
Restart=always

[Install]
WantedBy=multi-user.target
21 changes: 21 additions & 0 deletions service/prod/server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

#
# SPDX-License-Identifier: BSD-2-Clause
#
# server.sh
# Part of NetDEF CI System
#
# Copyright (c) 2023 by
# Network Device Education Foundation, Inc. ("NetDEF")
#
# frozen_string_literal: true
#

#
# SPDX-License-Identifier: BSD-2-Clause
#
# Startup script for CI Slack Bot

echo ">> Running server"
rackup -o 0.0.0.0 -p 4680 config.ru
12 changes: 12 additions & 0 deletions service/prod/slack_cibot.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description="CI Slack Bot DEVEL"
After=network.target

[Service]
User=slack_cibot_devel
WorkingDirectory=/home/slack_cibot/slack_github_bot
ExecStart=/home/slack_cibot/slack_github_bot/service/prod/server.sh
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit 3c4feaf

Please sign in to comment.