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

Devserver is not producing proper landing page for the first run #84

Open
gnurenga opened this issue Jul 4, 2015 · 1 comment
Open

Comments

@gnurenga
Copy link
Contributor

gnurenga commented Jul 4, 2015

Issue:

  • Unable to get the landing page afer running make deveserver for the firsttime.
  • If I run devserver 2nd time I am able to get the landing page.

Steps to reproduce the issue

  • Checkout a fresh copy of chennaipy website source.
  • Clone the theme from puresingle to theme folder
  • Then run $ make devserver PORT=8000
  • go to the browser enter http://localhost:8000
  • You will get the following page.

web

@gnurenga gnurenga changed the title Devserver is not producing showing proper landing page for the first run Devserver is not producing proper landing page for the first run Jul 4, 2015
@gnurenga
Copy link
Contributor Author

gnurenga commented Jul 6, 2015

Error message

Asciicast for terminal session
asciicast

Starting up Pelican and HTTP server
/home/rengaraj/chennaipy-website/develop_server.sh: line 69: cd: /home/rengaraj/chennaipy-website/output: No such file or directory
  • Above error message is due to cd $OUTPUTDIR runs before the output directory created by pelican
  • Because of this Server points to the basedirectory not to the output directory in which html files are generated.
  • But as per the shell script order we are changing the directory after running the pelican.
  $PELICAN --debug --autoreload -r $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS &
  pelican_pid=$!
  echo $pelican_pid > $PELICAN_PID
  cd $OUTPUTDIR # as per the stdout message this runs before the creation of output directory
  $PY -m pelican.server $port &
  srv_pid=$!
  • We can see the sequence in the above code.

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

1 participant