magnetosphere
  • Products
  • About
  • Policies
  • Friends
  • Blog
  • Telegram
  • Tuesday March 21, 2023 00:34:19
magnetosphere
  • Products
  • About
  • Policies
  • Friends
  • Blog
  • Telegram
  • Tuesday March 21, 2023 00:34:19

Magnetosphere Electronic Surplus dot com - Thu, Nov 4, 2021

new domain!


The top minds over at bunkerofdoom suggested that I ditch the old magnetosphere.net domain.

I really like magnetosphere.net and I wasn't keen on letting it go or repurposing it, I've already gone too far here. But there is something to be said for improving the search results for the webstore.

So magnetosphere.net is now also magnetosphereelectronicsurplus.com.

It suprises even me that just this morning I registered the domain and I have it working now, pretty much the correct way. There are a few little things that need to be changed still.

Much easier than the subcategories, but still something I'venever done before using the same golang application.

in case you are curious, here's the essential bit for serving on multiple ports in go:

finish := make(chan bool)

go func() {

log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", webPort), Serve))

}()

go func() {

go log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", webPort1), Serve1))

}()

<-finish

And then it was just a matterof defining the new static sources, redundantly definingte routes, and using the --baseurl and -d flags when generating the hugo sources.

I do still need some separate things in each config.toml but I will get to that sooner or later and it's readily possible with hugo.

but I need to take antiqueengineer.com into consideration as well in this.

Home


© magnetosphere.net © magnetosphereelectronicsurplus.com 2022 all rights reserved