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

fengari.io #216

Open
Bat1963 opened this issue Mar 26, 2024 · 27 comments
Open

fengari.io #216

Bat1963 opened this issue Mar 26, 2024 · 27 comments

Comments

@Bat1963
Copy link

Bat1963 commented Mar 26, 2024

Hello, the website (fengari.io) seems to have disappeared. I eventually learnt that it was very useful to test stuff out. Does it need a new VPS or something? I have a few cheappie ones if it will run from a folder. Happy to contribute towards this as I haven't donated anything to the project so far.

@daurnimator
Copy link
Member

I think @giann got sick of paying the renewal fee for the .io which is non-trivial?

I have VPS(s) we can host on. Or really we could just host the site off github pages because it's all static.

@Bat1963
Copy link
Author

Bat1963 commented Mar 26, 2024 via email

@giann
Copy link
Member

giann commented Mar 26, 2024

I still have the domain but i shut down the digital ocean droplet.

@Bat1963
Copy link
Author

Bat1963 commented Mar 26, 2024 via email

@Bat1963
Copy link
Author

Bat1963 commented Mar 26, 2024 via email

@ryanford
Copy link

Does the website need a backend? Taking a peak on the site repo looks like it's just using lapis to serve etlua templating but that could be compiled AoT and served as static files. I think it be hosted on GitHub pages without cost to you.

@Bat1963
Copy link
Author

Bat1963 commented Mar 26, 2024 via email

@garryspins
Copy link

We really could use this back up

@Bat1963
Copy link
Author

Bat1963 commented Apr 1, 2024 via email

@giann
Copy link
Member

giann commented Apr 2, 2024

An easier option might be to donate enough through github sponsor for me to pay the VPS.

Otherwise anyone able to setup the site can show it to me and i can point the DNS to it.

@Bat1963
Copy link
Author

Bat1963 commented Apr 3, 2024

Donated ;-)

@leafo
Copy link

leafo commented Apr 4, 2024

I deployed it here: https://fengari.moonscript.org/

I set up cloudflare to proxy for https. If you want to point to there (CNAME to fengari.moonscript.org) and don't want to use something like cloudflare to enable https then I can set up letsencrypt for the domain after it's pointing there.

Does the website need a backend? Taking a peak on the site repo looks like it's just using lapis to serve etlua templating but that could be compiled AoT and served as static files. I think it be hosted on GitHub pages without cost to you.

Doesn't look like it, the current site can be hosted on github pages.

Lapis can be used to generate a static version of the site with something like:

lapis simulate / > index.html
lapis simulate /repl > repl

This can be done in a github action.

@giann
Copy link
Member

giann commented Apr 4, 2024

Thanks @leafo. I'll update the DNS tomorrow.

@Bat1963 let me know if you want your donation refunded.

@Bat1963
Copy link
Author

Bat1963 commented Apr 4, 2024

No worries, my friend, you funded this enough yourself over the years, so I am happy to contribute.

I recently added a bit to my tutorial here: https://www.ucl.ac.uk/~rmhajc0/fengarilua.html

If you have a minute, please let me know of any major bloomers or omissions.

Best wishes, Jon.C.

P.S. the snapshots on the internet archive, e.g. https://web.archive.org/web/20240210092430/https://fengari.io/ actually work for testing code. I was impressed.

@vitiral
Copy link

vitiral commented Apr 4, 2024

that's what you (hopefully) get when it's 100% self-contained html and javascript 😄

@Bat1963
Copy link
Author

Bat1963 commented Apr 4, 2024

For a laugh, I saved the files with my browser, put them here and it works: http://ic50.org/fengari/ !!

Miracles happen, but it's not https.

@giann
Copy link
Member

giann commented Apr 5, 2024

@leafo can you give me an IP? A redirection with CNAME is only possible for a subdomain.

Edit: Trying with an ALIAS record just now

@giann
Copy link
Member

giann commented Apr 5, 2024

I recently added a bit to my tutorial here: https://www.ucl.ac.uk/~rmhajc0/fengarilua.html

@Bat1963 This is cool! Maybe format the code. 0 indentation is a little hardcore :)

@Bat1963
Copy link
Author

Bat1963 commented Apr 5, 2024

This one is a bit prettier: https://justpaste.it/8cb7f

@leafo
Copy link

leafo commented Apr 5, 2024

@leafo can you give me an IP? A redirection with CNAME is only possible for a subdomain.

Edit: Trying with an ALIAS record just now

You can use 173.255.218.206

@giann
Copy link
Member

giann commented Apr 8, 2024

@leafo fengari.io points to that IP now but https is ko.

@Bat1963
Copy link
Author

Bat1963 commented Apr 8, 2024 via email

@Bat1963
Copy link
Author

Bat1963 commented Apr 8, 2024 via email

@daurnimator
Copy link
Member

that's what you (hopefully) get when it's 100% self-contained html and javascript 😄

*html, javascript and lua

:)

Lapis can be used to generate a static version of the site

oh interesting!

But looks like it's all being handled now

@Bat1963
Copy link
Author

Bat1963 commented Apr 17, 2024

Any chance we can put a link to fengari.io back in the github pages? I think it would help as it flags up what fengari can do. Just trying to sell this stuff for you folks ;-0 ;-0

@giann
Copy link
Member

giann commented Apr 18, 2024

@Bat1963 I'd like https to be fixed first. @leafo can you look into it?

@Bat1963
Copy link
Author

Bat1963 commented May 26, 2024 via email

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

7 participants