forked from bullestock/acs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.txt
63 lines (48 loc) · 1.69 KB
/
setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Operating System
================
Install Debian
Enable swap
apt upgrade
apt install postgresql libpq-dev libssl1.0-dev emacs
sudo su - postgres
> psql
create role acs password 'PASS';
\q
Ruby
====
-- https://www.itzgeek.com/post/how-to-install-ruby-on-rails-on-debian-10-debian-9/
sudo apt update
sudo apt install -y curl gnupg2 dirmngr git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install -y nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install -y yarn
cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.7.0
rbenv global 2.7.0
Rails
=====
gem install rails
gem install bundler
cd acs
bundle update
Passenger
=========
-- Install Passenger: https://www.phusionpassenger.com/library/install/apache/install/oss/rubygems_norvm/
gem install passenger
sudo apt install apache2 apache2-dev libapr1-dev libaprutil1-dev
passenger-install-apache2-module
sudo passenger-config validate-install
- Configure production environment: http://stackoverflow.com/a/27434582, http://stackoverflow.com/a/1950369
SSL
===
https://wiki.debian.org/Self-Signed_Certificate