{"action":"created","issue":{"url":"https://api.github.com/repos/StashApp/StashServer/issues/15","repository_url":"https://api.github.com/repos/StashApp/StashServer","labels_url":"https://api.github.com/repos/StashApp/StashServer/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/StashApp/StashServer/issues/15/comments","events_url":"https://api.github.com/repos/StashApp/StashServer/issues/15/events","html_url":"https://github.com/StashApp/StashServer/issues/15","id":304639395,"number":15,"title":"Installing StashServer in Linux","user":{"login":"chimerasoup","id":33793780,"avatar_url":"https://avatars3.githubusercontent.com/u/33793780?v=4","gravatar_id":"","url":"https://api.github.com/users/chimerasoup","html_url":"https://github.com/chimerasoup","followers_url":"https://api.github.com/users/chimerasoup/followers","following_url":"https://api.github.com/users/chimerasoup/following{/other_user}","gists_url":"https://api.github.com/users/chimerasoup/gists{/gist_id}","starred_url":"https://api.github.com/users/chimerasoup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chimerasoup/subscriptions","organizations_url":"https://api.github.com/users/chimerasoup/orgs","repos_url":"https://api.github.com/users/chimerasoup/repos","events_url":"https://api.github.com/users/chimerasoup/events{/privacy}","received_events_url":"https://api.github.com/users/chimerasoup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-13T06:10:09Z","updated_at":"2018-03-15T22:47:56Z","closed_at":null,"author_association":"NONE","body":"Hi, I've been running stash in a docker container for a while without issue and would like to get stashserver running natively (Ubuntu Linux). I confess I know absolutely nothing about Rails, Angular, etc. but know my way around Linux pretty well.\r\n\r\nI've successfully installed all the pre-reqs, bundles, and start the stash server (`rails s`) no problem. However, when I load the site in my web browser `http://ipaddress:4000` an error page tells me there is a Migration pending. Here's the console output:\r\n\r\n`Started GET \"/\" for 127.0.0.1 at 2018-03-13 01:44:11 -0400`\r\n`ActiveRecord::PendingMigrationError (`\r\n`Migrations are pending. To resolve this issue, run:`\r\n`        bin/rails db:migrate RAILS_ENV=development`\r\n`):`\r\n\r\nAccording to the stacktrace, the following script had the issue:\r\n`activerecord (5.1.5) lib/active_record/migration.rb:576:in 'check_pending!'`\r\n\r\nSo, I run the migration (`bin/rails db:migrate RAILS_ENV=development`) as suggested. The script creates the tables and everything seems to complete ok. I restart nginx, restart stash, and then pull up the stash site in my browser. Now my browser only displays a bit of json that says: `{\"errors\":[{\"message\":\"No query string was present\"}]}`\r\n\r\nAny ideas what might be wrong? I'm sure it's something silly but I just don't know enough about Ruby to fix it myself. Thanks!"},"comment":{"url":"https://api.github.com/repos/StashApp/StashServer/issues/comments/373547256","html_url":"https://github.com/StashApp/StashServer/issues/15#issuecomment-373547256","issue_url":"https://api.github.com/repos/StashApp/StashServer/issues/15","id":373547256,"user":{"login":"StashAppDev","id":24867471,"avatar_url":"https://avatars1.githubusercontent.com/u/24867471?v=4","gravatar_id":"","url":"https://api.github.com/users/StashAppDev","html_url":"https://github.com/StashAppDev","followers_url":"https://api.github.com/users/StashAppDev/followers","following_url":"https://api.github.com/users/StashAppDev/following{/other_user}","gists_url":"https://api.github.com/users/StashAppDev/gists{/gist_id}","starred_url":"https://api.github.com/users/StashAppDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StashAppDev/subscriptions","organizations_url":"https://api.github.com/users/StashAppDev/orgs","repos_url":"https://api.github.com/users/StashAppDev/repos","events_url":"https://api.github.com/users/StashAppDev/events{/privacy}","received_events_url":"https://api.github.com/users/StashAppDev/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T22:47:56Z","updated_at":"2018-03-15T22:47:56Z","author_association":"CONTRIBUTOR","body":"Okay, so this project (StashApp/StashServer) is only the Rails app which includes no frontend code.  The `{\"errors\":[{\"message\":\"No query string was present\"}]}` message you are seeing is the GraphQL API responding.  It's not really meant to be viewed in the browser.\r\n\r\nIn order to get the UI working you'll need to clone or download the frontend files from https://github.com/StashApp/StashFrontend .  Once you have those files run the following commands from the project directory:\r\n\r\n`npm install gulp-cli -g` (To install Gulp globally if you don't already have it)\r\n`npm install`\r\n`npm install gulp`\r\n`cd semantic`\r\n`gulp build`\r\n`cd ..`\r\n`ng build --prod`\r\n\r\nThat should (fingers crossed) build the frontend and place the files in the `dist` directory.  From there you can serve the generated files with nginx.  You might be able to place the files in the rails public directory, but I haven't tried that.\r\n\r\nAnother option is instead of `ng build --prod` run this command instead:\r\n`ng serve --disableHostCheck --host=0.0.0.0`\r\n\r\nThat command will run the frontend in it's own server on port 4200.  This is what I do since it's good for development.\r\n\r\nHopefully this helps a bit and you can get the UI running.  I would really love to improve the user experience for getting this all set up, but I'm still unsure of the best way to handle that.  If you have any questions just let me know."}}
{"actor":{"display_login":"StashAppDev"}}