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

Documentation Building : improving the step by step guide #180

Open
hubyhuby opened this issue Feb 28, 2018 · 0 comments
Open

Documentation Building : improving the step by step guide #180

hubyhuby opened this issue Feb 28, 2018 · 0 comments

Comments

@hubyhuby
Copy link

hubyhuby commented Feb 28, 2018

The documentation is very helpful but may be improved for beginners.
It could be modified in this way:

Before building, you need to set your database configuration. By default your database.yml contain the following lines:
production:
url: {{envOr "DATABASE_URL" "postgres://postgresUSER:[email protected]:5432/MY-Database_production?sslmode=disable"}}

You need to complete the postgresUSER postgresPASS according to your server login on postegres.

[YOU BUILD your binary...]

Once your binary is downloaded on your server, you need to manually create your database "MY-Database_production" . Contrary to the dev mode (buffalo dev) the production binary ask you to create the Database by hand.

To do so login postgres and type something like "CREATE DATABASE MY-Database_production;"

MIGRATION
Once created launch your app on the command line with the option "migrate" as following
./MySuperAp migrate
The database tables will then be created.

[Launching your app in dev mode for a test run:

By default if you launch the app like this "./MySuperAp" it will be in development mode, looking for the dev database. Which you might want to run to check it is working in dev mode on your server... In this case you want to type in command line "export ADDR="MY-IP". Which will temporarily set the ADDR variable.
]
Once you are all set, you now want to, launch your app in service mode, by following the tutorial here : https://gobuffalo.io/docs/systemd

PS: after this we could also explain how to integrate buffalo with an existing apache or nginx server. Deploy-> integrating with existing web server

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