This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@debian-s-9:~# service nginx restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@debian-s-9:~# cd /usr/share/redmine | |
root@debian-s-9:~# gem install bundler | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
production: | |
adapter: postgresql | |
database: redmine | |
host: localhost | |
username: redmine | |
password: "çok_gizli_parola" | |
encoding: utf8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@debian-s-9:~# cd /usr/share/redmine/instances/default/config | |
root@debian-s-9:~# nano database.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@debian-s-9:~# apt-get -y install redmine-pgsql | |
... |
NewerOlder