-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphoenix.bits
More file actions
41 lines (34 loc) · 1.19 KB
/
phoenix.bits
File metadata and controls
41 lines (34 loc) · 1.19 KB
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
#!/bin/bash
#-----------
# VARIABLES
#-----------
ERLANG_VERSION=${ERLANG_VERSION-23.2-1}
ELIXIR_VERSION=${ELIXIR_VERSION-1.11.4}
PHOENIX_VERSION=${PHOENIX_VERSION-1.5.8}
POSTGRES_VERSION=${POSTGRES_VERSION-11}
LINUX_DISTRIBUTION=${LINUX_DISTRIBUTION-$(lsb_release -cs)}
#-----------
# INSTALLER
#-----------
touch /opt/phoenix.start
bits install-if git # force to get a newer version of git
bits install-if gitprompt # pretty prompt
ERLANG_VERSION=${ERLANG_VERSION} \
LINUX_DISTRIBUTION=${LINUX_DISTRIBUTION} \
ELIXIR_VERSION=${ELIXIR_VERSION} \
bits install-if elixir # for the core elixir language, which includes erlang
POSTGRES_VERSION=${POSTGRES_VERSION} \
LINUX_DISTRIBUTION=${LINUX_DISTRIBUTION} \
bits install-if postgres # for database
bits install-if sass # for SASS
bits install-if nodejs # for asset compilation
bits install-if phantomjs # for testing with hound
bits install-if certbot # for generating SSL certs
bits install-if imagemagick # for image processing
bits install inotify # for watching file changes
source $HOME/.bash_aliases
mix local.hex --force
mix local.rebar --force
mix archive.install --force hex phx_new $PHOENIX_VERSION
rm -f /opt/phoenix.start
touch /opt/phoenix.bits