Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
redmine_ynh
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
coops
redmine_ynh
Commits
e43b1262
Commit
e43b1262
authored
Mar 13, 2019
by
liberodark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3b7ae298
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
12 deletions
+10
-12
database.example.yml
conf/database.example.yml
+1
-1
systemd.service
conf/systemd.service
+3
-3
install
scripts/install
+6
-8
No files found.
conf/database.example.yml
View file @
e43b1262
production
:
adapter
:
postgresql
host
:
localhost
encoding
:
u
nicode
encoding
:
u
tf8
database
:
yunobase
pool
:
5
username
:
yunouser
...
...
conf/systemd.service
View file @
e43b1262
[Unit]
Description=
Pia Backend
Description=
Redmine
Requires=network.target
Requires=postgresql.service
...
...
@@ -7,9 +7,9 @@ Requires=postgresql.service
Type=simple
User=root
Group=users
WorkingDirectory=/opt/
pia-back
WorkingDirectory=/opt/
redmine
Environment=RAILS_SERVE_STATIC_FILES=true
ExecStart=/bin/bash -c "/opt/
pia-back
/bin/rails s -e production -b 127.0.0.1 -p 3000"
ExecStart=/bin/bash -c "/opt/
redmine
/bin/rails s -e production -b 127.0.0.1 -p 3000"
TimeoutSec=30
RestartSec=15s
Restart=always
...
...
scripts/install
View file @
e43b1262
...
...
@@ -47,7 +47,7 @@ app=$YNH_APP_INSTANCE_NAME
### If the app uses nginx as web server (written in HTML/PHP in most cases), the final path should be "/var/www/$app".
### If the app provides an internal web server (or uses another application server such as uwsgi), the final path should be "/opt/yunohost/$app"
final_path
=
/
var/www
/
$app
final_path
=
/
opt
/
$app
test
!
-e
"
$final_path
"
||
ynh_die
"This path already contains a folder"
# Normalize the url path syntax
...
...
@@ -144,14 +144,12 @@ ynh_setup_source "$final_path"
#=================================================
ynh_print_info
"Install Redmine Conffiguration..."
rm /opt/pia-back/config/database.example.yml
cp
-a
../conf/database.example.yml /opt/pia-back/config/database.yml
cp
-a
../conf/pias_controller.rb /opt/pia-back/app/controllers/pias_controller.rb
cp
-a
../conf/database.example.yml
$final_path
/config/database.yml
ynh_replace_string
"2.5.3"
"2.3.3"
"/opt/pia-back
/Gemfile"
ynh_replace_string
"yunouser"
"
$db_name
"
"
/opt/pia-back
/config/database.yml"
ynh_replace_string
"yunopass"
"
$db_pwd
"
"
/opt/pia-back
/config/database.yml"
ynh_replace_string
"yunobase"
"
$db_name
"
"
/opt/pia-back
/config/database.yml"
#ynh_replace_string "2.5.3" "2.3.3" "/opt/redmine
/Gemfile"
ynh_replace_string
"yunouser"
"
$db_name
"
"
$final_path
/config/database.yml"
ynh_replace_string
"yunopass"
"
$db_pwd
"
"
$final_path
/config/database.yml"
ynh_replace_string
"yunobase"
"
$db_name
"
"
$final_path
/config/database.yml"
#=================================================
# COMPILE PIA BACK
...
...
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