Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

0.9.0 Beta 2 - Ready for testing #6997

Closed
kevinansfield opened this issue Jun 15, 2016 · 16 comments
Closed

0.9.0 Beta 2 - Ready for testing #6997

kevinansfield opened this issue Jun 15, 2016 · 16 comments

Comments

@kevinansfield
Copy link
Member

kevinansfield commented Jun 15, 2016

Beta Release Notes

There is now a second beta of 0.9.0 published and ready for testing.

If you are able to do some testing, this would be much appreciated. REMEMBER: Make a backup first!

If you find any bugs, please raise them as separate issues according to the contributing guidelines

If you complete successful testing, please let us know by adding a comment here detailing what you tested and on what environment, covering relevant things like OS, browser, prod/dev mode, database (sqlite, mysql, postgres), server timezone, blog timezone etc.

Upgrade note:
If you are upgrading from any previous version of Ghost and you use npm@2.x you will need to delete your node_modules directory before running npm install - see the comment below for more details.

Some important areas for testing:

Aspects of Ghost not often used during development:

  • production environment
  • MySQL, Postgresql
  • Ghost as npm module
  • the upgrade process

Important things that have changed:

Scheduled Posts

It's now possible to set a future publish date when creating a post and schedule it to be published at that time. When a scheduled post is published it triggers all of the usual publish workflow so Slack notifications and so on will all work as if you clicked Publish at the scheduled time.

Please test all aspects of this and let us know if it works, doesn't work, if there's UI that's confusing, etc.

Internal Tags

Internal Tags have been added as a new labs feature. If you create a tag that is preceded by a # (e.g. #needs-review) then it will be marked as "internal".

  • Internal tags will not be output anywhere on the front-end and they will not have a tag page
  • Posts in the admin content screen will have their internal tags highlighted, this is useful for building some basic workflow where you could use tags such as #WIP, #needs-review, #ready-to-publish, etc.
  • It's possible to request internal tags via the API and the {{get}} helper so that you can use them in the front-end to apply different formatting or behaviour to posts with an internal tag

Migration to convert all datetimes in the database to UTC

In order to support customisable timezones and post scheduling this release contains a migration that will update all datetimes stored in the database to UTC. If your server timezone is already set to UTC there should be no change.

Please check your database before and after upgrading to ensure that the migration is successful.

  • sqlite3: should already use UTC timestamp, after the migration you should see the same times but in YYYY-MM-DD HH:mm:ss format
  • postgres: the migration script is not executed at all, you should see no change in the stored times
  • mysql: you should see the times change to UTC. For example if your server timezone is set to EST (UTC -5) then the times in your database after the migration should be 5 hours later.

Timezone support

It's now possible to set the timezone of your blog - this should finally fix the "I posted at 3AM this morning but my post says says it was published yesterday" bugs.

There is now a dropdown in the general settings screen of the admin where you can choose the timezone you want your blog to be in. Please test changing this and ensuring that the dates/times displayed on your blog front-end and in the admin content screen/editor are what you expect.

@acburdine
Copy link
Member

Something to note is that if you are upgrading from anything below this, and you use npm@2, you will likely have to clear out your node_modules folder. This is due to a bug where Ghost's pinned version of lodash is at version 4, and Bookshelf's is at version 3. On npm install, unless the node_modules folder doesn't exist, bookshelf will be forced to use lodash 4, which breaks it.

This should be fixed in the actual release; however, it can at the moment cause issues.

@kevinansfield
Copy link
Member Author

Thanks @acburdine, I've updated the issue and release text to mention that.

@qianduan
Copy link

<aside class="read-next">
    {{#next_post}}
    <a class="read-next-story {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
        <section class="post">
            <h2>{{title}}</h2>
            <p>{{excerpt words="19"}}&hellip;</p>
        </section>
    </a>
    {{/next_post}}
    {{#prev_post}}
    <a class="read-next-story prev {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
        <section class="post">
            <h2>{{title}}</h2>
            <p>{{excerpt words="19"}}&hellip;</p>
        </section>
    </a>
    {{/prev_post}}
</aside>

the prev_post and the next_post does not works, it output the last article in any post by next_post, the prev_post output nothing.

yeah, I use the default casper template.

@gdjam
Copy link

gdjam commented Jun 24, 2016

how to upgrade from 0.7.8 the 0.9.x ?

i've tried to import the data of 0.7.8 to this version, but failed~

thanks~

@kevinansfield
Copy link
Member Author

@gdjam you should follow the usual upgrade procedure outlined in http://support.ghost.org/how-to-upgrade/

@gdjam
Copy link

gdjam commented Jun 24, 2016

@kevinansfield still failed the same~

@ErisDS
Copy link
Member

ErisDS commented Jun 24, 2016

@gdjam Could you please post some details of what you did and how it failed? Thanks 👍

@gdjam
Copy link

gdjam commented Jun 24, 2016

@ErisDS
my site is running in the 0.7.8, and i export the data, download 0.9.0 Beta 2, use npm install --production to install the modules, and npm start --production running the same config like 0.7.8, then try to import the data, but show Import Fail~

thanks~

@kevinansfield
Copy link
Member Author

@gdjam you'll need to follow the upgrade instructions rather than exporting from an old version and importing into a new version. The upgrade process itself runs database migrations to ensure that your data is updated correctly

@kirrg001
Copy link
Contributor

@gdjam I've tried to reproduce why your import failed, but i couldn't so far.

This is what i did (maybe you can see a difference to what you did)

  1. started a Ghost blog with version 0.7.8
  2. exported blog as json file
  3. download 0.9.0 Beta 2
  4. ensure i have a config file from Ghost version 0.7.8
  5. npm install --production
  6. start Ghost blog with version 0.9.0 Beta 2 npm start --production
  7. navigate to /ghost to # (because database is empty)
  8. click labs on the same browser tab and import the json file

Here are some questions, which could maybe help us to figure out why your import failed:

  1. What database are you using?
  2. When you start Ghost 0.9.0 Beta 2 with npm start --production are you able to copy the error here when your import fails?

@gdjam
Copy link

gdjam commented Jun 29, 2016

@kirrg001 yes, these were what i did before, and i use sqlite in local dev-env, and the browser show the error message: Failed to load resource: the server responded with a status of 413 (Request Entity Too Large) http://localhost/ghost/api/v0.1/db/

@kirrg001
Copy link
Contributor

@gdjam Do you have a nginx running?

@gdjam
Copy link

gdjam commented Jun 29, 2016

@kirrg001 yes, the nginx was running for the proxy~

@kirrg001
Copy link
Contributor

@gdjam Ok then the error is served from nginx. You need to configure nginx to allow bigger file uploads.
example how to increase nginx filesize upload

@gdjam
Copy link

gdjam commented Jun 29, 2016

@kirrg001 yes yes, i've made it work! thanks very much !!! 👍

@kevinansfield
Copy link
Member Author

Closing now that 0.9.0 has been released.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants