Skip to content

Commit

Permalink
fix: Fix broken links to new.ash-hq.org and fix a JS issue causing th…
Browse files Browse the repository at this point in the history
…e installer command to not populate
  • Loading branch information
sevenseacat committed Feb 3, 2025
1 parent 78d2412 commit e14b279
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,7 @@ function setUrl() {
base = "https://ash-hq.org/new"
}


const appNameSafe = appName.toLowerCase().replace(/[\s-]/g, '_').replace(/[^a-z_]/g, '').replace(/^_/, '');
const appNameSafe = appNameComponent.value.toLowerCase().replace(/[\s-]/g, '_').replace(/[^a-z_]/g, '').replace(/^_/, '');

let installArg;
if (features.phoenix.checked) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ash_hq_web/controllers/home_controller.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule AshHqWeb.HomeController do
use AshHqWeb, :controller

@url_base if Mix.env() == :dev, do: "localhost:4000/new/", else: "https://new.ash-hq.org/"
@url_base if Mix.env() == :dev, do: "localhost:4000/new/", else: "https://ash-hq.org/new/"

def community(conn, _) do
contributors = AshHq.Github.Contributor.in_order!()
Expand Down
2 changes: 1 addition & 1 deletion lib/ash_hq_web/controllers/new_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule AshHqWeb.NewController do
#
# To run locally without | sh:
#
# $ curl -fsS -o myapp_new.sh https://new.ash-hq.org/myapp?install=list,of,packages
# $ curl -fsS -o myapp_new.sh https://ash-hq.org/new/myapp?install=list,of,packages
# $ sh myapp_new.sh
#
# Installs Elixir from Elixir's official install.sh script, then runs igniter.new.
Expand Down

0 comments on commit e14b279

Please sign in to comment.