catalyst.pl Hastu cd Hastu/ # this is important mv hastu.psgi app.psgi # need to edit app.psgi here git add . git init && git add . git commit -m "first commit" git remote add origin https://github.com/simonecesano/Hastu.git cpanm --installdeps . heroku apps:create hastu --stack cedar --buildpack https://github.com/miyagawa/heroku-buildpack-perl.git git push -u origin master git push heroku master
Saturday, September 27, 2014
Deploying Catalyst apps to Heroku
Saturday, May 31, 2014
Setting up a Postgres database
First you create the directory the database resides in:
Change to "unload" to stop the system from starting postgres automatically.
sudo mkdir /Volumes/Data/Postgresql/perfido
Then you make sure that it's owned by the user postgressudo chown -R postgres:postgres /Volumes/Data/Postgresql
and finally you create the databasesudo su postgres -c "initdb -D /Volumes/Data/Postgresql/perfido"
and you're ready to go.
If things don't work (you get a "could not connect to server" message) it's very likely a path issue (see this), and therefore fix your path:export PATH=/opt/local/lib/postgresql93/bin:$PATHTo start postgres automatically use:
sudo launchctl load -w /Library/LaunchDaemons/org.macports.postgresql93-server.plist
Change to "unload" to stop the system from starting postgres automatically.
Subscribe to:
Posts (Atom)