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

Initial data / data example? #36

Open
bagage opened this issue Jan 22, 2021 · 3 comments · May be fixed by #37
Open

Initial data / data example? #36

bagage opened this issue Jan 22, 2021 · 3 comments · May be fixed by #37

Comments

@bagage
Copy link

bagage commented Jan 22, 2021

I'm trying to host an instance locally, but yet my database is empty and it seems the app expects some data to be already present (for instance games with source mango).

Is there a way to have a working local copy?

I tried to manually create these data (and probably doing it wrong) without success yet:

User.create(email: "[email protected]", username: "admin", admin: true, password: "1234")
Api.create(name: "api-test")
Game.create(name: "game1", slug:"game1", source:"mango", image_url: "https://github.com/flightlessmango/flightlessmango.com/raw/master/app/assets/images/mangoLogoSmall.png")
Type.create(name: "type1")
Variation.create(name: "var1", type_id: 1)

Also some MANGO/OCAT/HML and game benchmark samples would be great.

Thanks!

@flightlessmango
Copy link
Owner

Looks like you've basically got it but there is a formatting bug in config/storage.yml which will prevent uploading, replace it's contents with
https://raw.githubusercontent.com/huacnlee/rails-activestorage-example/master/config/storage.yml

Game just needs a name and source mango like so
Game.create!(name: "VideoGame1", source: "mango")

I don't use HML or OCAT anymore so I'm not a 100% that they are still working as intended

@bagage
Copy link
Author

bagage commented Jan 23, 2021

Yes indeed I have trouble with uploading, undefined method 'upload' for nil:NilClass. Even with the updated storage.yml it is failing but not sure why. Any idea would be greatly appreciated 👍.

In the mean time some questions:

@flightlessmango
Copy link
Owner

As I said there is a formatting error in the config/storage.yml that is in this repo, you need to replace it with this one
https://raw.githubusercontent.com/huacnlee/rails-activestorage-example/master/config/storage.yml to fix uploading

Yes the file that user benchmarks expects and a "MANGO" file are the same, a csv created by mangohud

@bagage bagage linked a pull request Jan 25, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants