Browse Source

chore: try to build scss on gigalixir

danilo silva 10 months ago
parent
commit
67c2a618ff
5 changed files with 9 additions and 3 deletions
  1. 4 0
      .buildpacks
  2. 0 1
      .gitignore
  3. 3 0
      compile
  4. 2 1
      config/releases.exs
  5. 0 1
      elixir_buildpack.config

+ 4 - 0
.buildpacks

@@ -0,0 +1,4 @@
+https://github.com/gigalixir/gigalixir-buildpack-clean-cache.git
+https://github.com/HashNuke/heroku-buildpack-elixir
+https://github.com/gjaldon/heroku-buildpack-phoenix-static
+https://github.com/gigalixir/gigalixir-buildpack-releases.git

+ 0 - 1
.gitignore

@@ -34,4 +34,3 @@ npm-debug.log
 /priv/static/
 rel/
 metadata.json
-.buildpacks

+ 3 - 0
compile

@@ -0,0 +1,3 @@
+cd $phoenix_dir
+npm --prefix ./assets run build
+mix "${phoenix_ex}.digest" #use the ${phoenix_ex} variable instead of hardcoding phx or phoenix

+ 2 - 1
config/releases.exs

@@ -8,4 +8,5 @@ application_scheme = System.fetch_env!("APP_SCHEME")
 config :openpod, OpenpodWeb.Endpoint,
   url: [scheme: application_scheme, host: application_host, port: String.to_integer(application_port)],
   http: [:inet6, port: String.to_integer(application_port)],
-  secret_key_base: secret_key_base
+  secret_key_base: secret_key_base,
+  cache_static_manifest: "priv/static/cache_manifest.json"

+ 0 - 1
elixir_buildpack.config

@@ -1,3 +1,2 @@
 elixir_version=1.10.2
 erlang_version=22.2
-release=true