Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self hosting doesn't work #41

Open
RintaDev5792 opened this issue Jun 2, 2023 · 3 comments
Open

Self hosting doesn't work #41

RintaDev5792 opened this issue Jun 2, 2023 · 3 comments

Comments

@RintaDev5792
Copy link

When I host this on my web server, it just says loading and the game does not play

@jrincayc
Copy link

jrincayc commented Dec 3, 2023

Hm, I notice that self hosting index.html is missing the line:

<script type="text/javascript" src="src/micropolis.js?033fad982eaf9f97631d" defer></script>

but adding that is insufficient to fix the problem.

@Dhak0s
Copy link

Dhak0s commented Mar 7, 2024

Hm, I notice that self hosting index.html is missing the line:

<script type="text/javascript" src="src/micropolis.js?033fad982eaf9f97631d" defer></script>

but adding that is insufficient to fix the problem.

You have to put everything in your hosted directory into a subdirectory named micropolisJS and add <script type="text/javascript" src="src/micropolis.js?033fad982eaf9f97631d" defer></script> to the index.html after <script defer="" src="thirdparty/jquery/jquery-2.1.1.min.js"></script> at the bottom of the page. That's what worked for me.

@marco-acorte
Copy link

marco-acorte commented Sep 16, 2024

You have to deploy on selfhost / localhost the code on "gh-pages" branch

https://github.com/graememcc/micropolisJS/tree/gh-pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants