Setting up a blog on AWS Cloud9 - amazon-web-services

I'm new to programming, and i've been following the upskill course for about 2 weeks now. Everything was going great untill yesterday. I started the Deep Dive: Build a Blog section that uses Cloud9 and Ruby to build a blog. I have tried many times to follow the exact same path as the instructor but i keep on having the same problem.
The commands that I input in the terminal are the following (I do this on a new environment with the default settings).
$ rails new blog
Then the instructor ask us to change the 'sqlite3' line in the file called "gemfile" into gem 'sqlite3', '1.3.13'. To use the same version as him.
I then inpunt :
cd
cd environment
cd blog
bundle install
bundle update
rails generate scaffold Post title:string body:text
rake db:migrate
rails server
It is at this point that the problem occurs. The instructor terminal's response 3 more lines that i don't have . In my case the output stops at Ctrl c to shut down.
Plus after that the instructor click preview running application and is sent to the "ruby welcome page". He then get rid of a part of the URL to go to the blog. In my case the URL is completely different from his, it looks like that https://c187d78accd944209c8f91023e991d71.vfs.cloud9.us-east-2.amazonaws.com/ (actual URL). and his like that
Please help to solve this i can not see anything in preview page.
Do you guys know what I've been doing wrong ?
Thank you for reading all of these it's my first time posting so i hope it's kind of understandable.
Have a great day
I am trying to solve this problem but i can't solve this.
please help me why i am not see anything in preview page ?

Related

Svelte(kit) template rendering issue

I am very new with svelte and svelte(kit), apologies if this might be a naïve question.
I have an issue where svelte(kit) displays %sveltekit.head% and %sveltekit.body% instead of the actual svelte page being rendered.
This issue is only when I try to point the flask endpoint to svelte's html page but the application independently runs perfectly fine.
This is my first question, so incase if you need more details on this, let me know.
I tried running 'npm run build' -> cd package -> npm publish to create and publish the package but it doesn't work. Not sure if I am doing something wrong.
I also tried to read documentations and understood something like svelte(kit) has its own backend and frontend but not sure what I should be doing.
Svelte(kit) with Flask Backend - Some Questions
This question here is kind of similar, but I cannot understand what or how I could solve where I am stuck.

How to build a Shinymanager and Brochure app with Golem

I don't really have a repository to share as I am falling at the first hurdle sadly. I was wondering how to build an golem app that is both a Brochure and shinymanager one as I am hoping to create a login page for my app that leads to a menu page that can lead to multiple options of other pages.
I have tried wrapping the first page UI with secure_app but nothing happens when I hit 'log in'. I'm not quite sure how to determine what page the auth page goes to after logging in.
Just looking for a starting point to go off! Perhaps there is something else I can use other than Brochure to create a multi-page app with shinymanager log in?
Please consider giving some form of code -- here is info on how to write reprex -- you are trying to execute, if you cannot provide a repo to work on.
Consider moving to the polished package for authentication. I have that working with the brochure package -- note it is still in development.

Hugo does not build without ‘-t’ parameter

Currently I am using Hugo on GitHub Pages with ease but I have a few problems in which you could possibly help me to solve. Thanks in advance if you take your time to care a bit about my question, I highly appreciate that. I am trying to be as short as possible.
My short introductory page is located here
My blog (which needs fixes) is located here
Both sites are set up via the Hugo Quick Start, therefore I used the submodule way of getting the themes instead of cloning.
Both sites are deployed into separate repositories. I have asked in other channels what would be the best and cleanest form of maintaining these sites, then some said, GitHub Project Pages is nice.
To reach this feature, I have set publishDir to docs in both projects
Set the master branch with /docs folder option at GitHub Pages in both cases.
The content of my introductory page loads fine while - by default - the CSS of my blog does not really want to load. (The browser wants to search it at the root - where nothing is located - instead of /Blog).
I have avoided the problem by building my Hugo site with hugo -t blog and it works fine, you can check on the link above.
When I tried to link this to Netlify, it did not work. Unfortunately, it did not build with the default version of Hugo they provide, but I was able to fix this with the creation of netlify.toml where I set 0.36 for Hugo’s version.
So after that at Netlify I had to provide a build command. There hugo should go, but it did not work. CSSs are not loaded. Unfortunately, providing hugo -t blog as build command did not help either.
What I would like to acheive:
To be able to build my site without parameters just as in the other case. :)
Repositories of the projects:
Homepage
Blog
Thanks,
Armand
The -t parameter instructs Hugo to use the specified theme. You can instruct Hugo to use the same theme via "theme" setting in your config file instead of the -t command line parameter.

No questions asked when installing Django CMS - so no bootstrap

I installed Django CMS through Powershell using the command:
pip install djangocms-installer
I'm new to this, and the tutorial that I've been following suggested that I should be asked questions to set up Bootstrap and the SuperUser account. These questions weren't asked. Does anybody know why and how I could change this by hand? The django docs don't seem to be much help here because they assume that the questions are asked.
It occurs when I create a new project using:
djangocms -p . project
It just runs through rather than asking questions - no errors to report
I don't know if this helps but I had all sorts of headaches the first time I tried to install Django-cms. After much head scratching I did get it to successfully install and I was able to get up and running with it. I also created a crib sheet along the way of all the steps I took.
I have published this crib sheet on my website and you are welcome to go and review it, print it off etc. It will take you right back to the very beginning which may be unnecessary but hopefully you might be able to cherry pick the bits that you need. Hope it helps.
http://www.ubsltd.co.uk/index.php/creating-a-cms-website-with-django

Ghost blog service stopped, when I restart it, there's no content

I've had an installation of the ghost blogging platform on a DigitalOcean server for at least a year now. Everything was working great until 2 days ago, when I realized my blog is down.
I accessed the server, and saw that the process wasn't running. I started it again, but I don't have the content anymore, and no settings were saved.
Looking into the ghost folders, I see the /content/data folder with all the posts and images I had, but when I start the blog (just using node index.js) and I go to the url in the browser, I see the blog as if it's never been configured with a user, and no data is present.
How do I restore my configuration settings, and the content I used to have ?
Ok, it was a pretty stupid mistake on my side...
I was starting the server by just running index.js like this : node index.js
But when I initially started the ghost blog it was by running npm start --production
Ghost blog comes built with 2 databases - one for production use, and another for development purposes or anything else you want to play around with. When I started it in 'production mode' again I got my content and all the settings back. :)