Skip to content

Instantly share code, notes, and snippets.

View mgulsoy's full-sized avatar

Mert Gülsoy mgulsoy

View GitHub Profile
@mgulsoy
mgulsoy / restart-nginx.sh
Created December 2, 2019 18:28
Debian 9 Üzerine Nginx ve Redmine Kurulumu
root@debian-s-9:~# service nginx restart
@mgulsoy
mgulsoy / server.conf
Created December 2, 2019 18:26
Debian 9 Üzerine Nginx ve Redmine Kurulumu
server {
listen 80;
listen [::]:80;
server_name redmine.bizimsiteadresi.com;
access_log /var/log/nginx/redmine.bizimsiteadresi.com.access.log;
root /usr/share/redmine/public;
passenger_enabled on;
@mgulsoy
mgulsoy / create-virtualsite.sh
Created December 2, 2019 18:25
Debian 9 Üzerine Nginx ve Redmine Kurulumu
root@debian-s-9:~# cd /etc/nginx/sites-available/
root@debian-s-9:~# touch redmine.bizimsiteadresi.com
...
root@debian-s-9:~# nano redmine.bizimsiteadresi.com
@mgulsoy
mgulsoy / bundles.sh
Created December 2, 2019 18:24
Debian 9 Üzerine Nginx ve Redmine Kurulumu
root@debian-s-9:~# cd /usr/share/redmine
root@debian-s-9:~# bundle install
...
root@debian-s-9:~# bundle exec rake db:migrate
...
root@debian-s-9:~# bundle exec rake redmine:load_default_data
...
@mgulsoy
mgulsoy / bundler.sh
Created December 2, 2019 18:21
Debian 9 Üzerine Nginx ve Redmine Kurulumu
root@debian-s-9:~# cd /usr/share/redmine
root@debian-s-9:~# gem install bundler
...
@mgulsoy
mgulsoy / database.yaml
Created December 2, 2019 18:19
Debian 9 Üzerine Nginx ve Redmine Kurulumu
production:
adapter: postgresql
database: redmine
host: localhost
username: redmine
password: "çok_gizli_parola"
encoding: utf8
@mgulsoy
mgulsoy / edit-db-config.txt
Created December 2, 2019 18:17
Debian 9 Üzerine Nginx ve Redmine Kurulumu
root@debian-s-9:~# cd /usr/share/redmine/instances/default/config
root@debian-s-9:~# nano database.yml
@mgulsoy
mgulsoy / create-db.sh
Created December 2, 2019 18:16
Debian 9 Üzerine Nginx ve Redmine Kurulumu
root@debian-s-9:~# su - -c "psql postgres" postgres
psql (9.6.15)
Type "help" for help.
postgres=# CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD 'çok_gizli_parola' NOINHERIT VALID UNTIL 'infinity';
...
postgres=# CREATE DATABASE redmine WITH ENCODING='UTF8' OWNER=redmine;
...
postgres=# \q
@mgulsoy
mgulsoy / mod-http-passenger.sh
Created December 2, 2019 18:13
Debian 9 Üzerine Nginx ve Redmine Kurulumu
root@debian-s-9:~# echo deb https://oss-binaries.phusionpassenger.com/apt/passenger stretch main > /etc/apt/sources.list.d/passenger.list
...
root@debian-s-9:~# apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7
...
root@debian-s-9:~# apt-get update
...
root@debian-s-9:~# apt-get -y install libnginx-mod-http-passenger
...
@mgulsoy
mgulsoy / redmine.sh
Created December 2, 2019 18:12
Debian 9 Üzerine Nginx ve Redmine Kurulumu
root@debian-s-9:~# apt-get -y install redmine-pgsql
...